Back to home page

MITgcm

 
 

    


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

view on githubraw file Latest commit 15ec4b1e on 2026-02-28 00:30:32 UTC
b4daa24319 Shre*0001 #! /usr/bin/env bash
                0002 
15ec4b1e94 Jean*0003 #- in order to save disc space, take bin files using this prepare_run:
                0004 if test -x ../input_ad/prepare_run ; then
                0005   ../input_ad/prepare_run
b4daa24319 Shre*0006 fi
44c9a33d03 Jean*0007 
                0008 #- And to simplify maintenance, take parameter files
                0009 #- from this dir:
                0010 fromDir="../input_ad"
                0011 
                0012 fileList=`( cd $fromDir ; echo data* eedata )`
                0013 #echo 'fileList=' $fileList
                0014 
                0015 #- and do a symbolic link in the current directory
                0016 #   (if the file does not already exist)
                0017 if test -d $fromDir ; then
                0018   lnkList='files:'
                0019   for xx in $fileList
                0020   do
                0021     if test -r ${fromDir}/$xx ; then
                0022       if test ! -r $xx ; then
                0023         lnkList=${lnkList}" "$xx
                0024         ln -sf ${fromDir}/$xx .
                0025       fi
                0026     fi
                0027   done
                0028   echo ' link' $lnkList "from dir:" $fromDir
                0029 else
                0030   echo " Error:" $fromDir "not a directory"
                0031 fi