/[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.163 by jmc, Wed May 18 22:03:57 2011 UTC revision 1.165 by jmc, Wed Aug 3 18:34:31 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=$?
# Line 922  IEEE=true Line 931  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 950  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 1020  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 1044  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 ;;

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.165

  ViewVC Help
Powered by ViewVC 1.1.22