Back to home page

MITgcm

 
 

    


Warning, /verification/adjustment.cs-32x32x1/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
4e6d1b7026 Jean*0001 #! /usr/bin/env bash
                0002 
                0003 #- in order to save disc space, take files:
                0004 fileList="tile001.mitgrid tile002.mitgrid tile003.mitgrid tile004.mitgrid tile005.mitgrid tile006.mitgrid"
                0005 #- from this dir:
                0006 fromDir="../../aim.5l_cs/input"
                0007 
                0008 #- and do a symbolic link in the current directory 
                0009 #   (if the file does not already exist)
                0010 if test -d $fromDir ; then
                0011   lnkList='files:'
                0012   for xx in $fileList
                0013   do
                0014     if test -r ${fromDir}/$xx ; then 
                0015       if test ! -r $xx ; then 
                0016         lnkList=${lnkList}" "$xx
                0017         ln -sf ${fromDir}/$xx .
                0018       fi
                0019     fi
                0020   done
                0021   echo ' link' $lnkList "from dir:" $fromDir
                0022 else
                0023   echo " Error:" $fromDir "not a directory"
                0024 fi