Back to home page

MITgcm

 
 

    


Warning, /verification/global_oce_latlon/input_tap.w_exf/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 0c90ef58 on 2024-05-15 16:50:06 UTC
0c90ef582a Jean*0001 #! /usr/bin/env bash
                0002 
                0003 #- in order to save disc space, take *.bin files
                0004 #- from this dir:
                0005 fromDir="../../tutorial_global_oce_latlon/input"
                0006 
                0007 fileList=`( cd $fromDir ; echo *.bin )`
                0008 
                0009 #echo 'fileList=' $fileList
                0010 
                0011 #- and do a symbolic link in the current directory
                0012 #   (if the file does not already exist)
                0013 if test -d $fromDir ; then
                0014   lnkList='files:'
                0015   for xx in $fileList
                0016   do
                0017     if test -r ${fromDir}/$xx ; then
                0018       if test ! -r $xx ; then
                0019         lnkList=${lnkList}" "$xx
                0020         ln -sf ${fromDir}/$xx .
                0021       fi
                0022     fi
                0023   done
                0024   echo ' link' $lnkList "from dir:" $fromDir
                0025 else
                0026   echo " Error:" $fromDir "not a directory"
                0027 fi
                0028 
                0029 #- take file 'ones_64b.bin'
                0030 #- from this dir:
                0031 fromDir="../../isomip/input_ad"
                0032 
                0033 fileList='ones_64b.bin'
                0034 
                0035 #- and do a symbolic link in the current directory
                0036 #   (if the file does not already exist)
                0037 if test -d $fromDir ; then
                0038   lnkList='files:'
                0039   for xx in $fileList
                0040   do
                0041     if test -r ${fromDir}/$xx ; then
                0042       if test ! -r $xx ; then
                0043         lnkList=${lnkList}" "$xx
                0044         ln -sf ${fromDir}/$xx .
                0045       fi
                0046     fi
                0047   done
                0048   echo ' link' $lnkList "from dir:" $fromDir
                0049 else
                0050   echo " Error:" $fromDir "not a directory"
                0051 fi
                0052 
                0053 #- And to simplify maintenance, take parameter files
                0054 #- from this dir:
                0055 fromDir="../input_ad.w_exf"
                0056 
                0057 fileList=`( cd $fromDir ; echo data* eedata )`
                0058 
                0059 #echo 'fileList=' $fileList
                0060 
                0061 #- and do a symbolic link in the current directory
                0062 #   (if the file does not already exist)
                0063 if test -d $fromDir ; then
                0064   lnkList='files:'
                0065   for xx in $fileList
                0066   do
                0067     if test -r ${fromDir}/$xx ; then
                0068       if test ! -r $xx ; then
                0069         lnkList=${lnkList}" "$xx
                0070         ln -sf ${fromDir}/$xx .
                0071       fi
                0072     fi
                0073   done
                0074   echo ' link' $lnkList "from dir:" $fromDir
                0075 else
                0076   echo " Error:" $fromDir "not a directory"
                0077 fi