Back to home page

MITgcm

 
 

    


Warning, /verification/fizhi-gridalt-hs/input/prepare_run is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit 240cfc2f on 2018-02-12 19:08:52 UTC
eb8b270591 Jean*0001 #! /usr/bin/env bash
                0002 
                0003 #- in order to save disc space, take *.bin files
                0004 #- from this dir:
3507788661 Andr*0005 fromDir="../../fizhi-cs-32x32x40/input"
eb8b270591 Jean*0006 
240cfc2fc9 Jean*0007 fileList=`( cd $fromDir ; ls data.gcmo3 dxC1_dXYa.face00?.bin )`
eb8b270591 Jean*0008 
                0009 #echo 'fileList=' $fileList
                0010 
240cfc2fc9 Jean*0011 #- and do a symbolic link in the current directory
eb8b270591 Jean*0012 #   (if the file does not already exist)
                0013 if test -d $fromDir ; then
                0014   lnkList='files:'
                0015   for xx in $fileList
                0016   do
240cfc2fc9 Jean*0017     if test -r ${fromDir}/$xx ; then
                0018       if test ! -r $xx ; then
eb8b270591 Jean*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