/[MITgcm]/MITgcm/verification/testscript
ViewVC logotype

Diff of /MITgcm/verification/testscript

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

revision 1.18 by adcroft, Tue Aug 21 15:51:17 2001 UTC revision 1.21 by adcroft, Mon Mar 4 16:48:08 2002 UTC
# Line 224  runmodel() Line 224  runmodel()
224      if [ $quick -eq 0 ]; then      if [ $quick -eq 0 ]; then
225       rm -f output.txt       rm -f output.txt
226      fi      fi
227      echo -n "runmodel: " 1>&2      printf 'runmodel: ' 1>&2
228      make output.txt && return 0      make output.txt && return 0
229  #   if [ ! -r output.txt -o $quick -eq 0 ]; then  #   if [ ! -r output.txt -o $quick -eq 0 ]; then
230  #    echo runmodel: running... 1>&2  #    echo runmodel: running... 1>&2
# Line 314  $0 [-help] [-quick] [-verbose] dir1 [dir Line 314  $0 [-help] [-quick] [-verbose] dir1 [dir
314   -debug     Produce even more output which will mean nothing to most   -debug     Produce even more output which will mean nothing to most
315   -force     Do "make CLEAN" before compiling. This forces a complete rebuild.   -force     Do "make CLEAN" before compiling. This forces a complete rebuild.
316   -clean     Do "make CLEAN" after compiling and testing.   -clean     Do "make CLEAN" after compiling and testing.
317   -longtest  Compare numeric output for mean and s.d. of variables.   -shorttest Don't compare numeric output for mean and s.d. of variables.
318   -noieee    By default, $0 uses the -ieee option for genmake. This turns it off.   -noieee    By default, $0 uses the -ieee option for genmake. This turns it off.
319     -cleanup   Aggresively removes all model output, executables and object files
320                and then exits. Use with care.
321    
322  Normal usage:  Normal usage:
323   $0 *       Configure, compile, run and analyze in all experiment directories   $0 *       Configure, compile, run and analyze in all experiment directories
# Line 334  else Line 336  else
336  fi  fi
337  }  }
338    
339    clean_up()
340    {
341    # Find all executables, object files, CPP'd source and model output
342    # and DELETE it.
343    for opt in '-name mitgcmuv*' '-name *.o' '-name *.f' '-name *.c' '-path *results -prune -o -name *.meta' '-path *results -prune -o -name *.data' '-type l'
344     do
345       echo Cleaning: find . $opt -exec rm {} \;
346       find . $opt -exec rm {} \;
347    done
348    }
349    
350  ###############################################################################  ###############################################################################
351    
352  # Main function  # Main function
# Line 345  quick=0 Line 358  quick=0
358  force=0  force=0
359  clean=0  clean=0
360  ieee=1  ieee=1
361  longtest=0  longtest=1
362  expts=''  expts=''
363    
364  # Process arguments  # Process arguments
365  for arg in $@  for arg in $@
366  do  do
367   case $arg in   case $arg in
368       -cleanup) clean_up; exit 0;;
369     -quick) quick=1;;     -quick) quick=1;;
370     -verbose) verbose=2;;     -verbose) verbose=2;;
371     -debug) debug=1;;     -debug) debug=1;;
372     -force) force=1;;     -force) force=1;;
373     -clean) clean=1;;     -clean) clean=1;;
374     -noieee) ieee=0;;     -noieee) ieee=0;;
375     -longtest) longtest=1;;     -shorttest) longtest=0;;
376     -quiet) verbose=0;;     -quiet) verbose=0;;
377     -help) show_help; exit 0;;     -help) show_help; exit 0;;
378     -*) echo Unrecognized option:$arg; exit 9;;     -*) echo Unrecognized option:$arg; exit 9;;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.22