1 |
function Usage { |
function Usage { |
2 |
echo "Usage: $0 <testName>" |
echo "Usage: $0 [ <testName> ]" |
3 |
echo " where <testName> is for instance shallow_openad" |
echo " where <testName> is for instance shallow_openad" |
4 |
echo " executed in build_<testName>" |
echo " executed in build_<testName>" |
5 |
} |
} |
6 |
testName=${PWD##*/build_} |
if [ $# -eq 1 ] |
7 |
|
then |
8 |
|
testName=$1 |
9 |
|
else |
10 |
|
testName=${PWD##*/build_} |
11 |
|
fi |
12 |
inputDir=../../../../MITgcm_contrib/heimbach/OpenAD/input_${testName} |
inputDir=../../../../MITgcm_contrib/heimbach/OpenAD/input_${testName} |
13 |
if [ ! -d ${inputDir} ] |
if [ ! -d ${inputDir} ] |
14 |
then |
then |
17 |
exit -1 |
exit -1 |
18 |
fi |
fi |
19 |
ln -sf ${inputDir}/* . |
ln -sf ${inputDir}/* . |
20 |
|
tDir=$PWD |
21 |
cd ../../global_ocean.90x40x15/input |
cd ../../global_ocean.90x40x15/input |
22 |
./prepare_run > /dev/null |
./prepare_run > /dev/null |
23 |
cd ../../OpenAD/build_${testName} |
cd $tDir |
24 |
ln -sf ../../global_ocean.90x40x15/input/*.bin . |
ln -sf ../../global_ocean.90x40x15/input/*.bin . |