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