Back to home page

MITgcm

 
 

    


Warning, /verification/global_ocean.cs32x15/input/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
655b35d5dd Jean*0001 #! /usr/bin/env bash
                0002 
15ec4b1e94 Jean*0003 #- in order to save disc space, take grid files
655b35d5dd Jean*0004 #- from this dir:
                0005 fromDir="../../tutorial_held_suarez_cs/input"
                0006 
15ec4b1e94 Jean*0007 fileList=`( cd $fromDir ; ls grid_cs32.face00?.bin )`
                0008 #echo 'fileList=' $fileList
                0009 
                0010 #- from this dir:
                0011 
                0012 #- and do a symbolic link in the current directory
655b35d5dd Jean*0013 #   (if the file does not already exist)
                0014 if test -d $fromDir ; then
                0015   lnkList='files:'
                0016   for xx in $fileList
                0017   do
15ec4b1e94 Jean*0018     if test -r ${fromDir}/$xx ; then
                0019       if test ! -r $xx ; then
655b35d5dd Jean*0020         lnkList=${lnkList}" "$xx
                0021         ln -sf ${fromDir}/$xx .
                0022       fi
                0023     fi
                0024   done
                0025   echo ' link' $lnkList "from dir:" $fromDir
                0026 else
                0027   echo " Error:" $fromDir "not a directory"
                0028 fi