Warning, /verification/global_ocean.cs32x15/input_tap/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 44c9a33d on 2023-07-20 13:32:09 UTC
b4daa24319 Shre*0001 #! /usr/bin/env bash
0002
0003 #- in order to save disc space, take files:
0004 fileList="grid_cs32.face001.bin grid_cs32.face002.bin grid_cs32.face003.bin grid_cs32.face004.bin grid_cs32.face005.bin grid_cs32.face006.bin"
0005
0006 #- from this dir:
0007 fromDir="../../tutorial_held_suarez_cs/input"
0008
0009 #- and do a symbolic link in the current directory
0010 # (if the file does not already exist)
0011 if test -d $fromDir ; then
0012 lnkList='files:'
0013 for xx in $fileList
0014 do
0015 if test -r ${fromDir}/$xx ; then
0016 if test ! -r $xx ; then
0017 lnkList=${lnkList}" "$xx
0018 ln -sf ${fromDir}/$xx .
0019 fi
0020 fi
0021 done
0022 echo ' link' $lnkList "from dir:" $fromDir
0023 else
0024 echo " Error:" $fromDir "not a directory"
0025 fi
0026
0027 #- in order to save disc space, take files:
0028 fileList=`(cd ../input ; ls -1 *.bin pickup*)`
0029
0030 #- from this dir:
0031 fromDir="../input"
0032
0033 #- and do a symbolic link in the current directory
0034 # (if the file does not already exist)
0035 if test -d $fromDir ; then
0036 lnkList='files:'
0037 for xx in $fileList
0038 do
0039 if test -r ${fromDir}/$xx ; then
0040 if test ! -r $xx ; then
0041 lnkList=${lnkList}" "$xx
0042 ln -sf ${fromDir}/$xx .
0043 fi
0044 fi
0045 done
0046 echo ' link' $lnkList "from dir:" $fromDir
0047 else
0048 echo " Error:" $fromDir "not a directory"
0049 fi
0050
44c9a33d03 Jean*0051 #- take file 'ones_64b.bin'
b4daa24319 Shre*0052 #- from this dir:
0053 fromDir="../../isomip/input_ad"
0054
0055 fileList='ones_64b.bin'
0056
0057 #- and do a symbolic link in the current directory
0058 # (if the file does not already exist)
0059 if test -d $fromDir ; then
0060 lnkList='files:'
0061 for xx in $fileList
0062 do
0063 if test -r ${fromDir}/$xx ; then
0064 if test ! -r $xx ; then
0065 lnkList=${lnkList}" "$xx
0066 ln -sf ${fromDir}/$xx .
0067 fi
0068 fi
0069 done
0070 echo ' link' $lnkList "from dir:" $fromDir
0071 else
0072 echo " Error:" $fromDir "not a directory"
0073 fi
44c9a33d03 Jean*0074
0075 #- And to simplify maintenance, take parameter files
0076 #- from this dir:
0077 fromDir="../input_ad"
0078
0079 fileList=`( cd $fromDir ; echo data* eedata )`
0080
0081 #echo 'fileList=' $fileList
0082
0083 #- and do a symbolic link in the current directory
0084 # (if the file does not already exist)
0085 if test -d $fromDir ; then
0086 lnkList='files:'
0087 for xx in $fileList
0088 do
0089 if test -r ${fromDir}/$xx ; then
0090 if test ! -r $xx ; then
0091 lnkList=${lnkList}" "$xx
0092 ln -sf ${fromDir}/$xx .
0093 fi
0094 fi
0095 done
0096 echo ' link' $lnkList "from dir:" $fromDir
0097 else
0098 echo " Error:" $fromDir "not a directory"
0099 fi