/[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.6 by edhill, Wed Sep 10 02:30:37 2003 UTC revision 1.7 by edhill, Wed Sep 10 04:02:39 2003 UTC
# Line 10  usage() Line 10  usage()
10      echo      echo
11      echo "where possible OPTIONS are:"      echo "where possible OPTIONS are:"
12      echo "  (-help|-h)               print usage"      echo "  (-help|-h)               print usage"
13        echo "  (-mpi)                   use MPI input files"
14      echo "  (-optfile=|-of=)STRING   list of optfiles to use"      echo "  (-optfile=|-of=)STRING   list of optfiles to use"
15      echo "  (-a|-addr)STRING         list of email recipients"      echo "  (-a|-addr)STRING         list of email recipients"
16      echo "                             (DEF=\"edhill@mitgcm.org\")"      echo "                             (DEF=\"edhill@mitgcm.org\")"
# Line 405  TESTDIRS= Line 406  TESTDIRS=
406  MPACKDIR="../tools/mpack-1.6"  MPACKDIR="../tools/mpack-1.6"
407  MPACK="$MPACKDIR/mpack"  MPACK="$MPACKDIR/mpack"
408  COMMAND="make output.txt"  COMMAND="make output.txt"
409    MPI=f
410    
411  echo -n "parsing options...  "  echo -n "parsing options...  "
412    
# Line 450  for ac_option ; do Line 452  for ac_option ; do
452          -command=* | --command=*)          -command=* | --command=*)
453              COMMAND=$ac_optarg ;;              COMMAND=$ac_optarg ;;
454    
455            -mpi) MPI=t ;;
456          -verbose) verbose=2 ;;          -verbose) verbose=2 ;;
457          -debug) debug=1 ;;          -debug) debug=1 ;;
458          -clean) clean=1 ;;          -clean) clean=1 ;;
# Line 534  for OPTFILE in $OPTFILES ; do Line 537  for OPTFILE in $OPTFILES ; do
537                  | tee -a $SUMMARY                  | tee -a $SUMMARY
538              continue              continue
539          fi          fi
540            
541            #  Is this an MPI run?
542            if test "x$MPI" = xt ; then
543                if test ! -r $dir"/code/CPP_EEOPTIONS.h_mpi" -o ! -r $dir"/code/SIZE.h_mpi" ; then
544                    echo | tee -a $SUMMARY
545                    echo "can't read \"$dir/code/CPP_EEOPTIONS.h_mpi\" or \"$dir/code/SIZE.h_mpi\"" \
546                        | tee -a $SUMMARY
547                    continue
548                else
549                    cp $dir"/code/CPP_EEOPTIONS.h_mpi" $dir"/code/CPP_EEOPTIONS.h"
550                    cp $dir"/code/SIZE.h_mpi" $dir"/code/SIZE.h"
551                fi
552            else
553                if test -r $dir"/code/CPP_EEOPTIONS.h_nompi" ; then
554                    cp $dir"/code/CPP_EEOPTIONS.h_nompi" $dir"/code/CPP_EEOPTIONS.h"
555                fi
556                if test -r $dir"/code/SIZE.h_nompi" ; then
557                    cp $dir"/code/SIZE.h_nompi" $dir"/code/SIZE.h"
558                fi
559            fi
560    
561          #  Create an output dir for each OPTFILE/tdir combination          #  Create an output dir for each OPTFILE/tdir combination
562          CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR          CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR
563          mkdir $CDIR          mkdir $CDIR

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22