/[MITgcm]/MITgcm/verification/testreport
ViewVC logotype

Diff of /MITgcm/verification/testreport

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

revision 1.48 by jmc, Wed Nov 17 21:38:35 2004 UTC revision 1.49 by edhill, Tue Nov 23 21:25:24 2004 UTC
# Line 171  testoutput_ad() Line 171  testoutput_ad()
171      rm -f t[01][56].txt t[56].txt      rm -f t[01][56].txt t[56].txt
172  }  }
173    
174    check_for_add_mon_output()
175    {
176        # Check for additional types of monitor output
177        if test "x$1" = x ; then
178            return
179        fi
180    
181        ptr_add="trcstat_ptracerXX_min trcstat_ptracerXX_max"
182        ptr_add="$ptr_add trcstat_ptracerXX_mean trcstat_ptracerXX_sd"
183        for ii in 1 2 3 4 5 ; do
184            for jj in $ptr_add ; do
185                name=`eval "echo $jj | sed -e 's|XX|0"$ii"|g'"`
186                tst=`grep $name $1 | wc -l | awk '{print $1}'`
187                if test ! "x$tst" = x0 ; then
188                    eval "HAVE_PTR0"$ii"=t"
189                fi
190            done
191            #  eval 'echo "HAVE_PTR0'$ii' = $HAVE_PTR0'$ii'"'
192        done
193    }
194    
195  testoutput()  testoutput()
196  {  {
197      # testoutput directory subdir extension      # testoutput directory subdir extension
# Line 200  testoutput() Line 221  testoutput()
221          testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2 $3; vmax=$?          testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2 $3; vmax=$?
222          testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2 $3; vmean=$?          testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2 $3; vmean=$?
223          testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2 $3; vsd=$?          testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2 $3; vsd=$?
224          dashnum $cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd \  
225              $umin $umax $umean $usd $vmin $vmax $vmean $vsd          for ii in 1 2 3 4 5 ; do
226                testoutput_for_prop $1 "trcstat_ptracer0"$ii"_min"  "p0"$ii"_min"  $2 $3
227                RETVAL=$? ; eval `echo "p0"$ii"_min="$RETVAL`
228                testoutput_for_prop $1 "trcstat_ptracer0"$ii"_max"  "p0"$ii"_max"  $2 $3
229                RETVAL=$? ; eval `echo "p0"$ii"_max="$RETVAL`
230                testoutput_for_prop $1 "trcstat_ptracer0"$ii"_mean" "p0"$ii"_mean" $2 $3
231                RETVAL=$? ; eval `echo "p0"$ii"_mean="$RETVAL`
232                testoutput_for_prop $1 "trcstat_ptracer0"$ii"_sd"   "p0"$ii"_sd"   $2 $3
233                RETVAL=$? ; eval `echo "p0"$ii"_sd="$RETVAL`
234            done
235    
236            allargs="$cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd"
237            allargs="$allargs $umin $umax $umean $usd $vmin $vmax $vmean $vsd"
238            allargs="$allargs $p01_min $p01_max $p01_mean $p01_sd"
239            allargs="$allargs $p02_min $p02_max $p02_mean $p02_sd"
240            allargs="$allargs $p03_min $p03_max $p03_mean $p03_sd"
241            allargs="$allargs $p04_min $p04_max $p04_mean $p04_sd"
242            allargs="$allargs $p05_min $p05_max $p05_mean $p05_sd"
243    
244            eval "dashnum $allargs"
245    
246      else      else
247          testoutput_ad $1 $2 "precision_grdchk_result"          testoutput_ad $1 $2 "precision_grdchk_result"
248      fi      fi
# Line 585  DELDIR= Line 626  DELDIR=
626    
627  ADM=  ADM=
628    
629    # Additional monitor types
630    # HAVE_PTR01=
631    # HAVE_PTR02=
632    # HAVE_PTR03=
633    # HAVE_PTR04=
634    # HAVE_PTR05=
635    
636  printf "parsing options...  "  printf "parsing options...  "
637    
638  ac_prev=  ac_prev=
# Line 760  fi Line 808  fi
808  echo  echo
809  echo >> $SUMMARY  echo >> $SUMMARY
810  if test "x$ADM" = x ; then  if test "x$ADM" = x ; then
811      cat << EOF | tee -a $SUMMARY      line_0="            ----T-----  ----S-----  ----U-----  ----V-----"
812                  T           S           U           V      line_1="G D M    c        m  s        m  s        m  s        m  s"
813  G D M    c        m  s        m  s        m  s        m  s      line_2="E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  ."
814  E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .      line_3="N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d"
815  N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d      line_4="2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  ."
816  2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .      for ii in 1 2 3 4 5 ; do
817            #  tst=`eval 'echo $HAVE_PTR0'$ii`
818  EOF          #  if test "x$tst" = xt ; then
819            line_0="$line_0  --PTR 0"$ii"--"
820            line_1="$line_1        m  s"
821            line_2="$line_2  m  m  e  ."
822            line_3="$line_3  i  a  a  d"
823            line_4="$line_4  n  x  n  ."
824            #  fi
825        done
826        echo "$line_0" | tee -a $SUMMARY
827        echo "$line_1" | tee -a $SUMMARY
828        echo "$line_2" | tee -a $SUMMARY
829        echo "$line_3" | tee -a $SUMMARY
830        echo "$line_4" | tee -a $SUMMARY
831        echo " "       | tee -a $SUMMARY
832  else  else
833      echo "ADJOINT=true" >> $SUMMARY      echo "ADJOINT=true" >> $SUMMARY
834      echo >> $SUMMARY      echo >> $SUMMARY
# Line 807  for dir in $TESTDIRS ; do Line 868  for dir in $TESTDIRS ; do
868          continue          continue
869      fi      fi
870    
871        # Check for additional types of monitor output
872        check_for_add_mon_output  $fout
873    
874      builddir="input"      builddir="input"
875      rundir="input"      rundir="input"
876      use_seperate_build=0      use_seperate_build=0

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

  ViewVC Help
Powered by ViewVC 1.1.22