/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/RefTrans/doDiff.bash
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/RefTrans/doDiff.bash

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


Revision 1.10 - (hide annotations) (download)
Wed Jan 31 15:36:37 2007 UTC (19 years, 7 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +0 -0 lines
FILE REMOVED
consolidate update scripts

1 utke 1.5 if [ -n "$BATCHMODE" ]
2     then
3 utke 1.9 fileList='m.out'
4 utke 1.5 else
5     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 m.out'
6     fi
7     for i in `echo ${fileList}`
8 utke 1.1 do
9 utke 1.7 gunzip -c ${i}.gz > ${i}
10 utke 1.4 echo "$i old reference (<) vs new file (>)"
11     echo "------------------------------------------------------------------------------"
12 utke 1.6 diff -i -I "file translated from " $i ../../../../../MITgcm/verification/OpenAD/build_shallow_openad/$i
13 utke 1.4 if [ $? -ne 0 -a -z "$BATCHMODE" ]
14     then
15     echo "update reference for $i? [y]/n "
16     read answer
17     if [ "$answer" == "n" ]
18     then
19     echo "not updated"
20     else
21     echo "copying"
22     cp ../../../../../MITgcm/verification/OpenAD/build_shallow_openad/$i $i
23 utke 1.8 gzip -f ${i}
24 utke 1.4 fi
25     fi
26 utke 1.1 done

  ViewVC Help
Powered by ViewVC 1.1.22