/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/update.bash
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/update.bash

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 31 15:36:37 2007 UTC (17 years, 3 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
consolidate update scripts

1 utke 1.1 function Usage {
2     echo "Usage: $0 <testName>"
3     echo " where <testName> is for instance shallow_openad"
4     echo " executed in code_<testName>/RefTrans"
5     }
6     if [ $# -ne 1 ]
7     then
8     echo "Error: missing argument"
9     Usage $*
10     exit -1
11     fi
12     testName=$1
13     currPath=${PWD%%/code_${testName}/RefTrans}
14     if [ "$currPath/code_${testName}/RefTrans" != "$PWD" ]
15     then
16     echo "Error: not in code_${testName}/RefTrans"
17     Usage $*
18     exit -2
19     fi
20     fileList='ad_input_code_sf.f ad_input_code_sf.w2f.f ad_input_code_sf.w2f.canon.f ad_input_code_sf.w2f.canon.xaif ad_input_code_sf.w2f.canon.xb.xaif ad_input_code_sf.w2f.canon.xb.x2w.w2f.f ad_input_code_sf.w2f.canon.xb.x2w.w2f.rs.f ad_input_code_sf.w2f.canon.xb.x2w.w2f.rs.pp.f ad_input_code.w2f.canon.xb.x2w.w2f.rs.pp.f all_mods.xb.x2w.w2f.pp.f m.out'
21     for i in `echo ${fileList}`
22     do
23     gunzip -c ${i}.gz > ${i}
24     echo "$i old reference (<) vs new file (>)"
25     echo "------------------------------------------------------------------------------"
26     echo "copying"
27     cp ../../../../../MITgcm/verification/OpenAD/build_${testName}/$i $i
28     gzip -f ${i}
29     done

  ViewVC Help
Powered by ViewVC 1.1.22