/[MITgcm]/MITgcm/verification/OpenAD/linkData.bash
ViewVC logotype

Diff of /MITgcm/verification/OpenAD/linkData.bash

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by heimbach, Fri May 11 17:31:00 2007 UTC revision 1.4 by utke, Tue Sep 22 15:08:48 2009 UTC
# Line 1  Line 1 
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
# Line 12  then Line 17  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 .

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22