/[MITgcm]/MITgcm/tools/tst_2+2
ViewVC logotype

Diff of /MITgcm/tools/tst_2+2

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

revision 1.10 by jmc, Fri Nov 4 17:42:32 2011 UTC revision 1.13 by jmc, Mon Jan 11 20:46:05 2016 UTC
# Line 120  echo "cmdEXE='$cmdEXE'" Line 120  echo "cmdEXE='$cmdEXE'"
120  if test $flag = '0' -o $Multi = '1' ; then  if test $flag = '0' -o $Multi = '1' ; then
121  #----------------------------------------------------------------------  #----------------------------------------------------------------------
122  # check for executable:  # check for executable:
123  if test ! -x $gcmEXE  if test ! -x $gcmEXE ; then
124    echo "file '$gcmEXE' does not exist or is not executable"    echo "file '$gcmEXE' does not exist or is not executable"
125    exit 7    exit 7
126  fi  fi
# Line 140  then Line 140  then
140    else    else
141      iter=`echo $lastPick | awk '{print $1}'`      iter=`echo $lastPick | awk '{print $1}'`
142      sufx=`echo $lastPick | awk '{print $2}'`      sufx=`echo $lastPick | awk '{print $2}'`
143      echo "from previous run std.outp, lastPick='$lastPick' ; iter='$iter' ; sufx='$sufx'"      echo "from previous run $outpRun, lastPick='$lastPick' ; iter='$iter' ; sufx='$sufx'"
144    fi    fi
145  else  else
146    echo "no standard output file '$outpRun' from previous run"    echo "no standard output file '$outpRun' from previous run"
# Line 297  then Line 297  then
297       cat TTT.out.2it       cat TTT.out.2it
298  else $cmdEXE > std_outp.2it  else $cmdEXE > std_outp.2it
299  fi  fi
300    if test ! -s std_outp.2it
301    then echo "empty or no output file: 'std_outp.2it' => exit" ; exit 1 ; fi
302  mv STDERR.0000 std__err.2it  mv STDERR.0000 std__err.2it
303  out=`egrep -c 'STOP ABNORMAL END' std_outp.2it`  out=`egrep -c 'STOP ABNORMAL END' std_outp.2it`
304  if test $out != 0  if test $out != 0
# Line 324  then Line 326  then
326       cat TTT.out.1iA       cat TTT.out.1iA
327  else $cmdEXE > std_outp.1iA  else $cmdEXE > std_outp.1iA
328  fi  fi
329    if test ! -s std_outp.1iA
330    then echo "empty or no output file: 'std_outp.1iA' => exit" ; exit 2 ; fi
331  mv STDERR.0000 std__err.1iA  mv STDERR.0000 std__err.1iA
332  out=`egrep -c 'STOP ABNORMAL END' std_outp.1iA`  out=`egrep -c 'STOP ABNORMAL END' std_outp.1iA`
333  if test $out != 0  if test $out != 0
# Line 350  then Line 354  then
354       cat TTT.out.1iB       cat TTT.out.1iB
355  else $cmdEXE > std_outp.1iB  else $cmdEXE > std_outp.1iB
356  fi  fi
357    if test ! -s std_outp.1iB
358    then echo "empty or no output file: 'std_outp.1iB' => exit" ; exit 3 ; fi
359  mv STDERR.0000 std__err.1iB  mv STDERR.0000 std__err.1iB
360  out=`egrep -c 'STOP ABNORMAL END' std_outp.1iB`  out=`egrep -c 'STOP ABNORMAL END' std_outp.1iB`
361  if test $out != 0  if test $out != 0
# Line 411  do Line 417  do
417     diff $dir1/$zz${xx}data $dir3     diff $dir1/$zz${xx}data $dir3
418     out=$?     out=$?
419     if test $out != 0 ; then     if test $out != 0 ; then
420      echo 'Diff outp=' $out ' ==> stop'      #-- refined check: exclude diff between +0 and -0
421      exit 4      nbDif=`cmp -l  $dir1/$zz${xx}data $dir3/$zz${xx}data \
422               | sed -e '/ 0 200$/d' -e '/ 200   0$/d' | wc -l`
423        if test $nbDif != 0 ; then
424         echo "Diff outp= $out (nb-Diff= $nbDif ) ==> stop"
425         exit 4
426        fi
427     fi     fi
428     if test $chkmeta = 'Y' -a -f $dir1/$zz${xx}meta ; then     if test $chkmeta = 'Y' -a -f $dir1/$zz${xx}meta ; then
429      echo ' diff' $dir1/$zz${xx}meta $dir3      echo ' diff' $dir1/$zz${xx}meta $dir3

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

  ViewVC Help
Powered by ViewVC 1.1.22