/[MITgcm]/MITgcm_contrib/jmc_script/tst_2+2_cpl
ViewVC logotype

Diff of /MITgcm_contrib/jmc_script/tst_2+2_cpl

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

revision 1.13 by jmc, Sun Oct 25 18:02:14 2015 UTC revision 1.15 by jmc, Thu Mar 17 20:01:59 2022 UTC
# Line 24  dif_tiles() Line 24  dif_tiles()
24  #   for all tiles  ==> do diff dd1/file dd2/file'  #   for all tiles  ==> do diff dd1/file dd2/file'
25      dd1=$1 ; dd2=$2 ; zz=$3      dd1=$1 ; dd2=$2 ; zz=$3
26      chkmeta='N'      chkmeta='N'
27        listY=`(cd $dd1 ; ls $zz.data | sed "s/\.data//") 2> /dev/null`
28        if test "x$listY" = "x$zz" ; then
29          echo '--> file='$zz' (global)'
30          echo diff $dd1/$zz.data $dd2
31          diff $dd1/$zz.data $dd2
32          out=$?
33          if test $out != 0
34          then echo 'Diff outp=' $out ' ==> stop'
35           exit ; fi
36          if test $chkmeta = 'Y' ; then
37           echo diff $dd1/$zz.meta $dd2
38           diff $dd1/$zz.meta $dd2
39           out=$?
40           if test $out != 0 ; then echo 'Diff outp=' $out ' ==> stop' ; exit ; fi
41          fi
42          return
43        fi
44      listY=`(cd $dd1 ; ls $zz.*.data | sed "s/$zz\.//" | sed "s/\.data//")`      listY=`(cd $dd1 ; ls $zz.*.data | sed "s/$zz\.//" | sed "s/\.data//")`
45      echo '--> file='$zz', listY='$listY      echo '--> file='$zz', listY='$listY
46      for yy in $listY      for yy in $listY
# Line 252  xx=`echo $arg1 | sed 's/^r//'` Line 269  xx=`echo $arg1 | sed 's/^r//'`
269  if test $xx != $arg1 ; then doRun=1 ; arg1=$xx ; else doRun=0 ; fi  if test $xx != $arg1 ; then doRun=1 ; arg1=$xx ; else doRun=0 ; fi
270  ksel=$arg1  ksel=$arg1
271    
272  CMD="./${CMD} $MTH 3"  if test -x ${CMD} ; then
273      CMD="./${CMD} $MTH 3"
274    else
275      if test -x ../../tools/${CMD} ; then
276        CMD="../../tools/${CMD} $MTH 3"
277      else
278        echo " no test-script '${CMD}' found neither here nor in '../../tools/'"
279        exit
280      fi
281    fi
282  echo " doRun='$doRun' ; ksel='$ksel' ; kUp='$kUp' ; command='$CMD'"  echo " doRun='$doRun' ; ksel='$ksel' ; kUp='$kUp' ; command='$CMD'"
283    
284  #- set dir of Master-Proc for 3 components (coupler == rank_0):  #- set dir of Master-Proc for 3 components (coupler == rank_0):

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22