Warning, /verification/1D_ocean_ice_column/input_ad/prepare_run is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 11c3150c on 2021-10-18 18:00:35 UTC
8f749e3979 Ian *0001 #! /usr/bin/env bash
0002
0003 #- in order to save disc space, take *.1979 files
0004 #- from this dir:
0005 fromDir="../input"
0006
775bb1c36b Ian *0007 #fileList=`( cd $fromDir ; echo *one_year )`
8994582cee Jean*0008 fileList=`( cd $fromDir ; echo *1x1* )`
8f749e3979 Ian *0009
0010 #echo 'fileList=' $fileList
0011
11c3150c71 Mart*0012 #- and do a symbolic link in the current directory
8f749e3979 Ian *0013 # (if the file does not already exist)
0014 if test -d $fromDir ; then
0015 lnkList='files:'
0016 for xx in $fileList
0017 do
11c3150c71 Mart*0018 if test -r ${fromDir}/$xx ; then
0019 if test ! -r $xx ; then
8f749e3979 Ian *0020 lnkList=${lnkList}" "$xx
0021 ln -sf ${fromDir}/$xx .
0022 fi
0023 fi
0024 done
0025 echo ' link' $lnkList "from dir:" $fromDir
0026 else
0027 echo " Error:" $fromDir "not a directory"
0028 fi
0029
11c3150c71 Mart*0030 #- And take file 'ones_64b.bin'
0031 #- from this dir:
0032 fromDir="../../isomip/input_ad"
0033
0034 fileList='ones_64b.bin'
0035
0036 #- and do a symbolic link in the current directory
0037 # (if the file does not already exist)
0038 if test -d $fromDir ; then
0039 lnkList='files:'
0040 for xx in $fileList
0041 do
0042 if test -r ${fromDir}/$xx ; then
0043 if test ! -r $xx ; then
0044 lnkList=${lnkList}" "$xx
0045 ln -sf ${fromDir}/$xx .
0046 fi
0047 fi
0048 done
0049 echo ' link' $lnkList "from dir:" $fromDir
0050 else
0051 echo " Error:" $fromDir "not a directory"
0052 fi