Back to home page

MITgcm

 
 

    


File indexing completed on 2023-08-02 05:10:58 UTC

view on githubraw file Latest commit 5bc99689 on 2023-08-01 13:40:46 UTC
0d35aacf95 Patr*0001 function Usage { 
0088ad0ab5 Jean*0002   echo "Usage: $0 [ <testName> ]"
0d35aacf95 Patr*0003   echo "       where <testName> is for instance  shallow_openad"
                0004   echo "       executed in build_<testName>"
                0005 }
0088ad0ab5 Jean*0006 if [ $# -eq 1 ]
                0007 then 
                0008   testName=$1
                0009 else 
                0010   testName=${PWD##*/build_}
                0011 fi
0d35aacf95 Patr*0012 inputDir=../../../../MITgcm_contrib/heimbach/OpenAD/input_${testName}
                0013 if [ ! -d ${inputDir} ] 
                0014 then 
                0015   echo "Error: input directory ${inputDir} doesn't exist"
                0016   Usage $*
                0017   exit -1
                0018 fi
                0019 ln -sf ${inputDir}/* .
0088ad0ab5 Jean*0020 tDir=$PWD
0d35aacf95 Patr*0021 cd ../../global_ocean.90x40x15/input
                0022 ./prepare_run > /dev/null
0088ad0ab5 Jean*0023 cd $tDir
0d35aacf95 Patr*0024 ln -sf ../../global_ocean.90x40x15/input/*.bin .