/[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.161 by jmc, Sat Apr 30 22:20:17 2011 UTC revision 1.166 by jmc, Fri Aug 19 22:24:26 2011 UTC
# Line 15  usage() Line 15  usage()
15      echo "  (-mpi)                   use MPI to compile and run on 2 processors"      echo "  (-mpi)                   use MPI to compile and run on 2 processors"
16      echo "  (-MPI)  NUMBER           use MPI to compile and run on max NUMBER procs"      echo "  (-MPI)  NUMBER           use MPI to compile and run on max NUMBER procs"
17      echo "  (-mfile|-mf) STRING      MPI: file with list of possible machines to run on"      echo "  (-mfile|-mf) STRING      MPI: file with list of possible machines to run on"
18      echo "  (-ieee/-noieee)          if possible, use IEEE compiler flags"      echo "  (-fast)                  use optfile default for compiler flags (no '-ieee')"
19      echo "                             (DEF=\"-ieee\")"      echo "                            DEF=off => use IEEE numerics option (if available)"
20        echo "  (-devel)                 use optfile developement flags (if available)"
21      echo "  (-gsl)                   compile with \"-gsl\" flag"      echo "  (-gsl)                   compile with \"-gsl\" flag"
22      echo "  (-use_r4|-ur4)           if allowed, use real*4 type for '_RS' variable"      echo "  (-use_r4|-ur4)           if allowed, use real*4 type for '_RS' variable"
23      echo "  (-optfile|-of) STRING    list of optfiles to use"      echo "  (-optfile|-of) STRING    list of optfiles to use"
# Line 47  usage() Line 48  usage()
48      echo "  (-match) NUMBER          Matching Criteria (number of digits)"      echo "  (-match) NUMBER          Matching Criteria (number of digits)"
49      echo "                             (DEF=\"$MATCH_CRIT\")"      echo "                             (DEF=\"$MATCH_CRIT\")"
50      echo "  (-j) JOBS                use \"make -j JOBS\" for parallel builds"      echo "  (-j) JOBS                use \"make -j JOBS\" for parallel builds"
51        echo "  (-ef) STRING             used as genmake2 \"-extra_flag\" argument"
52      echo "  (-clean)                 *ONLY* run \"make CLEAN\" & clean run-dir"      echo "  (-clean)                 *ONLY* run \"make CLEAN\" & clean run-dir"
53      echo "  (-norun|-nr)             skip the \"runmodel\" stage (stop after make)"      echo "  (-norun|-nr)             skip the \"runmodel\" stage (stop after make)"
54        echo "  (-obj)                   only produces objects (=norun & no executable)"
55      echo "  (-runonly|-ro)           *ONLY* run stage (=\"-quick\" without make)"      echo "  (-runonly|-ro)           *ONLY* run stage (=\"-quick\" without make)"
56      echo "  (-quick|-q)              same as \"-nogenmake -noclean -nodepend\""      echo "  (-quick|-q)              same as \"-nogenmake -noclean -nodepend\""
57      echo "  (-nogenmake|-ng)         skip the genmake stage"      echo "  (-nogenmake|-ng)         skip the genmake stage"
# Line 338  genmakemodel() Line 341  genmakemodel()
341              if test "x$OPTFILE" != xNONE ; then              if test "x$OPTFILE" != xNONE ; then
342                  command="$command -optfile=$OPTFILE"                  command="$command -optfile=$OPTFILE"
343              fi              fi
344              if test "x$IEEE" != x ; then              if test $OptLev = 1 ; then
345                  command="$command -ieee"                  command="$command -ieee"
346                fi
347                if test $OptLev = 0 ; then
348                    command="$command -devel"
349              fi              fi
350              if test "x$GSL" = xt ; then              if test "x$GSL" = xt ; then
351                  command="$command -gsl"                  command="$command -gsl"
# Line 354  genmakemodel() Line 360  genmakemodel()
360              if test "x$USE_R4" = xt ; then              if test "x$USE_R4" = xt ; then
361                  command="$command -use_r4"                  command="$command -use_r4"
362              fi              fi
363                if test "x$EXTRFLG" != x ; then
364                    command="$command -extra_flag $EXTRFLG"
365                fi
366              if test "x$TS" = xt ; then              if test "x$TS" = xt ; then
367                  command="$command -ts"                  command="$command -ts"
368              fi              fi
# Line 480  makemodel() Line 489  makemodel()
489                  $MAKE adAll >> make.tr_log 2>&1                  $MAKE adAll >> make.tr_log 2>&1
490              else              else
491                  if test "x$JOBS" = x ; then                  if test "x$JOBS" = x ; then
492                      $MAKE >> make.tr_log 2>&1                      $MAKE $TARG >> make.tr_log 2>&1
493                  else                  else
494                      $MAKE -j $JOBS >> make.tr_log 2>&1                      $MAKE -j $JOBS $TARG >> make.tr_log 2>&1
495                  fi                  fi
496              fi              fi
497              RETVAL=$?              RETVAL=$?
498              if test "x$RETVAL" != x0 ; then              if test "x$RETVAL" != x0 ; then
499                  tail make.tr_log                  tail make.tr_log
500                  echo failed                  echo failed
501                  cp make.tr_log genmake.log genmake.tr_log $CDIR                  cp genmake.log genmake.tr_log $CDIR
502                    tail -$NBLINES_MKLOG make.tr_log > $CDIR"/make.tr_log_tail"
503                  rm -f $EXECUTABLE                  rm -f $EXECUTABLE
504                  mk_fail=1                  mk_fail=1
505              else              else
# Line 726  runmodel() Line 736  runmodel()
736          else          else
737            if test ! -f $OUTPUTFILE -o $OUTPUTFILE -ot $EXECUTABLE ; then            if test ! -f $OUTPUTFILE -o $OUTPUTFILE -ot $EXECUTABLE ; then
738              # output do not exist or is older than executable:              # output do not exist or is older than executable:
739              rm -f $RUNLOG ; touch $RUNLOG              rm -f $OUTPUTFILE $RUNLOG ; touch $RUNLOG
740              if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi              if test -f run.log_tmp ; then cat run.log_tmp >> $RUNLOG ; fi
741              ( eval $COMMAND ) >> $RUNLOG 2>&1              ( eval $COMMAND ) >> $RUNLOG 2>&1
742              RETVAL=$?              RETVAL=$?
# Line 915  check_eedata() Line 925  check_eedata()
925  #  Default properties  #  Default properties
926  debug=0  debug=0
927  verbose=1  verbose=1
928    NBLINES_MKLOG=16000
929    
930  IEEE=true  IEEE=true
931  if test "x$MITGCM_IEEE" != x ; then  if test "x$MITGCM_IEEE" != x ; then
932      IEEE=$MITGCM_IEEE      IEEE=$MITGCM_IEEE
933  fi  fi
934    OptLev=1
935  GSL=f  GSL=f
936    
937  CLEANUP=f  CLEANUP=f
# Line 948  if test "x$CC" = x ; then Line 960  if test "x$CC" = x ; then
960      CC=cc      CC=cc
961  fi  fi
962  JOBS=  JOBS=
963    TARG=
964  MPI=0  MPI=0
965  MPI_MFILE=  MPI_MFILE=
966  MULTI_THREAD=f  MULTI_THREAD=f
967  OUTDIR=  OUTDIR=
968  DELDIR=  DELDIR=
969  USE_R4=  USE_R4=
970    EXTRFLG=
971    
972  ADM=  ADM=
973  OADM=  OADM=
# Line 1018  for ac_option ; do Line 1032  for ac_option ; do
1032          -j | --j) ac_prev=JOBS ;;          -j | --j) ac_prev=JOBS ;;
1033          -j=* | --j=*) JOBS=$ac_optarg ;;          -j=* | --j=*) JOBS=$ac_optarg ;;
1034    
1035            -ef | --ef) ac_prev=EXTRFLG ;;
1036            -ef=* | --ef=*) EXTRFLG=$ac_optarg ;;
1037    
1038          -clean | --clean) CLEANUP=t ; DELDIR=t ;;          -clean | --clean) CLEANUP=t ; DELDIR=t ;;
1039    
1040          -norun | --norun | -nr | --nr) NORUN=t ;;          -norun | --norun | -nr | --nr) NORUN=t ;;
1041            -obj | --obj ) TARG='obj' ; NORUN=t ;;
1042          -runonly | --runonly | -ro | --ro) QUICK=t ; NOMAKE=t ;;          -runonly | --runonly | -ro | --ro) QUICK=t ; NOMAKE=t ;;
1043          -quick | --quick | -q | --q) QUICK=t ;;          -quick | --quick | -q | --q) QUICK=t ;;
1044          -nogenmake | --nogenmake | -ng | --ng) NOGENMAKE=t ;;          -nogenmake | --nogenmake | -ng | --ng) NOGENMAKE=t ;;
# Line 1042  for ac_option ; do Line 1060  for ac_option ; do
1060          -adm | -ad) ADM=t ;;          -adm | -ad) ADM=t ;;
1061          -oad) OADM=t; NODEPEND=t ;;          -oad) OADM=t; NODEPEND=t ;;
1062    
1063          -ieee) IEEE=true ;;          -ieee)   echo "Warning: ignore option '-ieee' (already the default)"
1064          -noieee) IEEE= ;;                   printf " ... " ;;
1065            -noieee) echo "Warning: will use option '-fast' instead of '-noieee' (obsolete)"
1066                     printf " ... " ; OptLev=`expr $OptLev \* 2` ;;
1067            -fast)  OptLev=`expr $OptLev \* 2` ;;
1068            -devel) OptLev=0 ;;
1069          -gsl) GSL=t ;;          -gsl) GSL=t ;;
1070    
1071          -verbose) verbose=2 ;;          -verbose) verbose=2 ;;
# Line 1524  for dir in $TESTDIRS ; do Line 1546  for dir in $TESTDIRS ; do
1546              if test "x$RETVAL" = x0 ; then              if test "x$RETVAL" = x0 ; then
1547                  echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state                  echo "from '$gmkLog', extract compiler version:" >> $DRESULTS/genmake_state
1548                  sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \                  sed -n '/Get compiler version/,/<-- compiler version/p' $gmkLog \
1549                         | grep -v '^... compiler version ' > tr_1.tmp_log                          | grep -v '^... compiler version ' > tr_1.tmp_log
1550                  sed -n '1,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \                  sed -n '1p' tr_1.tmp_log >> $DRESULTS/genmake_state
1551                    sed -n '2,/^$/p' tr_1.tmp_log | sed '/^$/d' | sed 's/^./ &/' \
1552                          >> $DRESULTS/genmake_state                          >> $DRESULTS/genmake_state
1553                  rm -f tr_1.tmp_log                  rm -f tr_1.tmp_log
1554              fi              fi

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

  ViewVC Help
Powered by ViewVC 1.1.22