/[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.166 by jmc, Fri Aug 19 22:24:26 2011 UTC revision 1.172 by jmc, Wed May 2 14:30:28 2012 UTC
# Line 251  testoutput_run() Line 251  testoutput_run()
251                    then echo testoutput_run: testoutput_var $1 cg2d_init_res 1>&2 ; fi                    then echo testoutput_run: testoutput_var $1 cg2d_init_res 1>&2 ; fi
252                    testoutput_var $1 "cg2d_init_res" "Press. Solver (cg2d)" $2 $3; yy=$?                    testoutput_var $1 "cg2d_init_res" "Press. Solver (cg2d)" $2 $3; yy=$?
253                    if [ $debug -gt 0 ] ; then echo testoutput_run: cg2dres=$yy 1>&2 ; fi ;;                    if [ $debug -gt 0 ] ; then echo testoutput_run: cg2dres=$yy 1>&2 ; fi ;;
254            'Cost') testoutput_var $1 "ADM  precision_derivative_cost" "ADM Cost" $2 $3; yy=$? ;;            'Cost') testoutput_var $1 "ADM  ref_cost_function" "ADM CostFct" $2 $3; yy=$? ;;
255            'Grad') testoutput_var $1 "ADM  precision_derivative_grad" "ADM Grad" $2 $3; yy=$? ;;           'AdGrd') testoutput_var $1 "ADM  adjoint_gradient"  "ADM Ad Grad" $2 $3; yy=$? ;;
256             'FDGrd') testoutput_var $1 "ADM  finite-diff_grad"  "ADM FD Grad" $2 $3; yy=$? ;;
257             'Tmn') testoutput_var $1 "dynstat_theta_min"  "Theta minimum"  $2 $3; yy=$? ;;             'Tmn') testoutput_var $1 "dynstat_theta_min"  "Theta minimum"  $2 $3; yy=$? ;;
258             'Tmx') testoutput_var $1 "dynstat_theta_max"  "Theta maximum"  $2 $3; yy=$? ;;             'Tmx') testoutput_var $1 "dynstat_theta_max"  "Theta maximum"  $2 $3; yy=$? ;;
259             'Tav') testoutput_var $1 "dynstat_theta_mean" "Theta mean"     $2 $3; yy=$? ;;             'Tav') testoutput_var $1 "dynstat_theta_mean" "Theta mean"     $2 $3; yy=$? ;;
# Line 289  testoutput_run() Line 290  testoutput_run()
290           'hSImx') testoutput_var $1 "seaice_heff_max"   "SIce Heff max"   $2 $3; yy=$? ;;           'hSImx') testoutput_var $1 "seaice_heff_max"   "SIce Heff max"   $2 $3; yy=$? ;;
291           'hSIav') testoutput_var $1 "seaice_heff_mean"  "SIce Heff mean"  $2 $3; yy=$? ;;           'hSIav') testoutput_var $1 "seaice_heff_mean"  "SIce Heff mean"  $2 $3; yy=$? ;;
292           'hSIsd') testoutput_var $1 "seaice_heff_sd"    "SIce Heff StDv"  $2 $3; yy=$? ;;           'hSIsd') testoutput_var $1 "seaice_heff_sd"    "SIce Heff StDv"  $2 $3; yy=$? ;;
293             'uSImn') testoutput_var $1 "seaice_uice_min"   "SIce Uice min"   $2 $3; yy=$? ;;
294             'uSImx') testoutput_var $1 "seaice_uice_max"   "SIce Uice max"   $2 $3; yy=$? ;;
295             'uSIav') testoutput_var $1 "seaice_uice_mean"  "SIce Uice mean"  $2 $3; yy=$? ;;
296             'uSIsd') testoutput_var $1 "seaice_uice_sd"    "SIce Uice StDv"  $2 $3; yy=$? ;;
297             'vSImn') testoutput_var $1 "seaice_vice_min"   "SIce Vice min"   $2 $3; yy=$? ;;
298             'vSImx') testoutput_var $1 "seaice_vice_max"   "SIce Vice max"   $2 $3; yy=$? ;;
299             'vSIav') testoutput_var $1 "seaice_vice_mean"  "SIce Vice mean"  $2 $3; yy=$? ;;
300             'vSIsd') testoutput_var $1 "seaice_vice_sd"    "SIce Vice StDv"  $2 $3; yy=$? ;;
301          'AthSiG') testoutput_var $1 "thSI_Ice_Area_G" "thSIc Area Global" $2 $3; yy=$? ;;          'AthSiG') testoutput_var $1 "thSI_Ice_Area_G" "thSIc Area Global" $2 $3; yy=$? ;;
302          'AthSiS') testoutput_var $1 "thSI_Ice_Area_S" "thSIc Area South"  $2 $3; yy=$? ;;          'AthSiS') testoutput_var $1 "thSI_Ice_Area_S" "thSIc Area South"  $2 $3; yy=$? ;;
303          'AthSiN') testoutput_var $1 "thSI_Ice_Area_N" "thSIc Area North"  $2 $3; yy=$? ;;          'AthSiN') testoutput_var $1 "thSI_Ice_Area_N" "thSIc Area North"  $2 $3; yy=$? ;;
# Line 434  run_clean() Line 443  run_clean()
443              find . -name "fort.*" -exec rm {} \;              find . -name "fort.*" -exec rm {} \;
444              find . -type l -exec rm {} \;              find . -type l -exec rm {} \;
445              #- should remove executable only if sym-link (alredy done above)              #- should remove executable only if sym-link (alredy done above)
446              rm -f $RUNLOG *.txt STD* *diagnostics.log datetime              rm -f $RUNLOG *.txt STD* w2_tile_topology.????.log *diagnostics.log datetime
447              rm -rf mnc_test_*              rm -rf mnc_test_*
448              rm -f *_MIT_CE_000.opt0000 costfunction*0000              rm -f *_MIT_CE_000.opt0000 costfunction*0000
449              echo successful              echo successful
# Line 483  makemodel() Line 492  makemodel()
492          cd $1;          cd $1;
493          if test -r Makefile ; then          if test -r Makefile ; then
494              printf 'make ... '              printf 'make ... '
495              if test "x$ADM" = xt ; then              if test "x$REPLMAKE" = x ; then
496                  $MAKE adall >> make.tr_log 2>&1                  $MAKE $TARG >> make.tr_log 2>&1
497              elif test "x$OADM" = xt ; then              else
498                  $MAKE adAll >> make.tr_log 2>&1                  $REPLMAKE $TARG >> make.tr_log 2>&1
             else  
                 if test "x$JOBS" = x ; then  
                     $MAKE $TARG >> make.tr_log 2>&1  
                 else  
                     $MAKE -j $JOBS $TARG >> make.tr_log 2>&1  
                 fi  
499              fi              fi
500              RETVAL=$?              RETVAL=$?
501              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
# Line 927  debug=0 Line 930  debug=0
930  verbose=1  verbose=1
931  NBLINES_MKLOG=16000  NBLINES_MKLOG=16000
932    
 IEEE=true  
 if test "x$MITGCM_IEEE" != x ; then  
     IEEE=$MITGCM_IEEE  
 fi  
933  OptLev=1  OptLev=1
934  GSL=f  GSL=f
935    
# Line 956  MKDEPEND= Line 955  MKDEPEND=
955  if test "x$MAKE" = x ; then  if test "x$MAKE" = x ; then
956      MAKE=make      MAKE=make
957  fi  fi
958    REPLMAKE=
959  if test "x$CC" = x ; then  if test "x$CC" = x ; then
960      CC=cc      CC=cc
961  fi  fi
# Line 1020  for ac_option ; do Line 1020  for ac_option ; do
1020          -make | --make | -m | --m) ac_prev=MAKE ;;          -make | --make | -m | --m) ac_prev=MAKE ;;
1021          -make=* | --make=* | -m=* | --m=*) MAKE=$ac_optarg ;;          -make=* | --make=* | -m=* | --m=*) MAKE=$ac_optarg ;;
1022    
1023            -repl_mk | --repl_mk ) ac_prev=REPLMAKE ;;
1024            -repl_mk=* | --repl_mk=*) REPLMAKE=$ac_optarg ;;
1025    
1026          -odir | --odir) ac_prev=OUTDIR ;;          -odir | --odir) ac_prev=OUTDIR ;;
1027          -odir=* | --odir=*) OUTDIR=$ac_optarg ;;          -odir=* | --odir=*) OUTDIR=$ac_optarg ;;
1028    
# Line 1114  fi Line 1117  fi
1117    
1118  #- setting for forward or ADM testing  #- setting for forward or ADM testing
1119  if test "x$ADM" = xt ; then  if test "x$ADM" = xt ; then
1120        if test "x$TARG" = xobj ; then TARG=adobj ; else TARG=adall ; fi
1121      code_dir=code_ad      code_dir=code_ad
1122      inputdir=input_ad      inputdir=input_ad
1123      ref_outp="output_adm.txt"      ref_outp="output_adm.txt"
1124      EXECUTABLE="mitgcmuv_ad"      EXECUTABLE="mitgcmuv_ad"
1125  elif test "x$OADM" = xt ; then  elif test "x$OADM" = xt ; then
1126        TARG=adAll
1127      code_dir=code_oad      code_dir=code_oad
1128      inputdir=input_oad      inputdir=input_oad
1129      ref_outp="output_oadm.txt"      ref_outp="output_oadm.txt"
1130      EXECUTABLE="mitgcmuv_ad"      EXECUTABLE="mitgcmuv_ad"
1131  else  else
1132        if test "x$JOBS" != x ; then TARG="-j $JOBS $TARG" ; fi
1133      code_dir=code      code_dir=code
1134      inputdir=input      inputdir=input
1135      ref_outp="output.txt"      ref_outp="output.txt"
# Line 1202  if test "x$ADM" = x -a "x$OADM" = x; the Line 1208  if test "x$ADM" = x -a "x$OADM" = x; the
1208      ii=`echo $EMPTY_RESULTS | awk '{print NF}'`      ii=`echo $EMPTY_RESULTS | awk '{print NF}'`
1209      EMPTY_RESULTS=$EMPTY_RESULTS`expr $LEN_CHECK_LIST - $ii | awk 'BEGIN{FS=":"}{for(i=1;i<=$1;i++){printf "  ."}}'`      EMPTY_RESULTS=$EMPTY_RESULTS`expr $LEN_CHECK_LIST - $ii | awk 'BEGIN{FS=":"}{for(i=1;i<=$1;i++){printf "  ."}}'`
1210  else  else
1211      DEF_CHECK_LIST='Grad Cost Grad'      DEF_CHECK_LIST='AdGrd Cost AdGrd FDGrd'
1212      EMPTY_RESULTS='.. ..'      EMPTY_RESULTS='.. .. ..'
1213      LEN_CHECK_LIST=`echo $DEF_CHECK_LIST | sed 's/ [a-zA-Z0-9]*+/&mn &mx &av &sd/g' | awk '{print NF-1}'`      LEN_CHECK_LIST=`echo $DEF_CHECK_LIST | sed 's/ [a-zA-Z0-9]*+/&mn &mx &av &sd/g' | awk '{print NF-1}'`
1214  fi  fi
1215    
# Line 1289  if test "x$ADM" = x -a "x$OADM" = x; the Line 1295  if test "x$ADM" = x -a "x$OADM" = x; the
1295      else line_0="default "$MATCH_CRIT ; fi      else line_0="default "$MATCH_CRIT ; fi
1296         line_0="$line_0  ----T-----  ----S-----  ----U-----  ----V-----"         line_0="$line_0  ----T-----  ----S-----  ----U-----  ----V-----"
1297      line_1="G D M    c        m  s        m  s        m  s        m  s"      line_1="G D M    c        m  s        m  s        m  s        m  s"
1298      line_2="E p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  ."      line_2="e p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  ."
1299      line_3="N n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d"      line_3="n n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d"
1300      line_4="2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  ."      line_4="2 d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  ."
1301      for ii in $PTRACERS_NUM ; do      for ii in $PTRACERS_NUM ; do
1302          line_0="$line_0  --PTR 0"$ii"--"          line_0="$line_0  --PTR 0"$ii"--"
# Line 1313  else Line 1319  else
1319      else line_0="default    "$MATCH_CRIT ; fi      else line_0="default    "$MATCH_CRIT ; fi
1320      echo "$line_0" | tee -a $SUMMARY      echo "$line_0" | tee -a $SUMMARY
1321      cat << EOF | tee -a $SUMMARY      cat << EOF | tee -a $SUMMARY
1322  G D M    C  G  G D M    C  A  F
1323  E p a R  o  r  e p a R  o  d  D
1324  N n k u  s  a  n n k u  s  G  G
1325  2 d e n  t  d  2 d e n  t  r  r
1326    
1327  EOF  EOF
1328  fi  fi

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.172

  ViewVC Help
Powered by ViewVC 1.1.22