Back to home page

MITgcm

 
 

    


Warning, /verification/seaice_obcs/input/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
adb13907c3 Dimi*0001 #! /usr/bin/env bash
                0002 
                0003 #- in order to save disc space, take files:
                0004 fileList="tair.labsea1979 qa.labsea1979 u10m.labsea1979 v10m.labsea1979 prate.labsea1979 flo.labsea1979 fsh.labsea1979 SSS_monthly.labsea1979"
                0005 
                0006 #- from this dir:
                0007 fromDir="../../lab_sea/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