--- MITgcm/verification/OpenAD/linkData.bash 2007/05/11 17:31:00 1.3 +++ MITgcm/verification/OpenAD/linkData.bash 2009/09/22 15:08:48 1.4 @@ -1,9 +1,14 @@ function Usage { - echo "Usage: $0 " + echo "Usage: $0 [ ]" echo " where is for instance shallow_openad" echo " executed in build_" } -testName=${PWD##*/build_} +if [ $# -eq 1 ] +then + testName=$1 +else + testName=${PWD##*/build_} +fi inputDir=../../../../MITgcm_contrib/heimbach/OpenAD/input_${testName} if [ ! -d ${inputDir} ] then @@ -12,7 +17,8 @@ exit -1 fi ln -sf ${inputDir}/* . +tDir=$PWD cd ../../global_ocean.90x40x15/input ./prepare_run > /dev/null -cd ../../OpenAD/build_${testName} +cd $tDir ln -sf ../../global_ocean.90x40x15/input/*.bin .