/[MITgcm]/MITgcm_contrib/jmc_script/dif_data
ViewVC logotype

Contents of /MITgcm_contrib/jmc_script/dif_data

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


Revision 1.1 - (show annotations) (download)
Tue Oct 30 22:41:33 2007 UTC (12 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: testing_tag01, HEAD
add a version of "tst1+1" to check coupled set-up.

1 #! /bin/sh
2 if [ $# -le 2 ] ; then
3 echo 'Usage: '`basename $0` ' dir1 dir2 list_of_files :'
4 echo ' ==> do diff dir1/file dir2/file'
5 echo ' for each file in list_of_files & for all tiles '
6 exit
7 fi
8 chkmeta=Y
9 dir0=`pwd`
10 dir1=$1
11 dir2=$2
12 shift ; shift ;
13 first=1
14 listnamf=$*
15 for zz in $listnamf
16 do
17 if test $first = 1
18 then
19 cd $dir1
20 listX=`ls $zz.*.data | sed "s/$zz.//g" | sed "s/.data//g"`
21 cd $dir0
22 echo ' listX=' $listX
23 first=0
24 fi
25 echo '--> file=' $zz
26 for xx in $listX
27 do
28 echo diff $dir1/$zz.$xx.data $dir2
29 diff $dir1/$zz.$xx.data $dir2
30 out=$?
31 if test $out != 0
32 then echo 'Diff outp=' $out ' ==> stop'
33 exit ; fi
34 if test $chkmeta = 'Y'
35 then
36 echo diff $dir1/$zz.$xx.meta $dir2
37 diff $dir1/$zz.$xx.meta $dir2
38 out=$?
39 if test $out != 0
40 then echo 'Diff outp=' $out ' ==> stop'
41 exit ; fi
42 fi
43 done
44 done
45 exit

  ViewVC Help
Powered by ViewVC 1.1.22