Warning, /verification/global_ocean.cs32x15/input_ad/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 15ec4b1e on 2026-02-28 00:30:32 UTC
bfcc31b8d8 Patr*0001 #! /usr/bin/env bash
0002
15ec4b1e94 Jean*0003 #- in order to save disc space, take grid files
bfcc31b8d8 Patr*0004 #- from this dir:
0005 fromDir="../../tutorial_held_suarez_cs/input"
0006
15ec4b1e94 Jean*0007 fileList=`( cd $fromDir ; ls grid_cs32.face00?.bin )`
0008 #echo 'fileList=' $fileList
0009
698b6992ee Jean*0010 #- and do a symbolic link in the current directory
bfcc31b8d8 Patr*0011 # (if the file does not already exist)
0012 if test -d $fromDir ; then
0013 lnkList='files:'
0014 for xx in $fileList
0015 do
698b6992ee Jean*0016 if test -r ${fromDir}/$xx ; then
0017 if test ! -r $xx ; then
bfcc31b8d8 Patr*0018 lnkList=${lnkList}" "$xx
0019 ln -sf ${fromDir}/$xx .
0020 fi
0021 fi
0022 done
0023 echo ' link' $lnkList "from dir:" $fromDir
0024 else
0025 echo " Error:" $fromDir "not a directory"
0026 fi
64899c1766 Patr*0027
15ec4b1e94 Jean*0028 #- in order to save disc space, take *.bin and pickup files
64899c1766 Patr*0029 #- from this dir:
0030 fromDir="../input"
0031
15ec4b1e94 Jean*0032 fileList=`( cd $fromDir ; ls *.bin pickup* )`
0033
698b6992ee Jean*0034 #- and do a symbolic link in the current directory
64899c1766 Patr*0035 # (if the file does not already exist)
0036 if test -d $fromDir ; then
0037 lnkList='files:'
0038 for xx in $fileList
0039 do
698b6992ee Jean*0040 if test -r ${fromDir}/$xx ; then
0041 if test ! -r $xx ; then
0042 lnkList=${lnkList}" "$xx
0043 ln -sf ${fromDir}/$xx .
0044 fi
0045 fi
0046 done
0047 echo ' link' $lnkList "from dir:" $fromDir
0048 else
0049 echo " Error:" $fromDir "not a directory"
0050 fi
0051
0052 #- And take file 'ones_64b.bin'
0053 #- from this dir:
0054 fromDir="../../isomip/input_ad"
0055
0056 fileList='ones_64b.bin'
0057
0058 #- and do a symbolic link in the current directory
0059 # (if the file does not already exist)
0060 if test -d $fromDir ; then
0061 lnkList='files:'
0062 for xx in $fileList
0063 do
0064 if test -r ${fromDir}/$xx ; then
0065 if test ! -r $xx ; then
64899c1766 Patr*0066 lnkList=${lnkList}" "$xx
0067 ln -sf ${fromDir}/$xx .
0068 fi
0069 fi
0070 done
0071 echo ' link' $lnkList "from dir:" $fromDir
0072 else
0073 echo " Error:" $fromDir "not a directory"
0074 fi