/[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.13 by adcroft, Tue Aug 14 18:29:43 2001 UTC revision 1.15 by adcroft, Thu Aug 16 15:37:40 2001 UTC
# Line 143  makeclean() Line 143  makeclean()
143  # makedependmodel directory  # makedependmodel directory
144   ( cd $1;   ( cd $1;
145     if [ $clean -gt 0 ]; then     if [ $clean -gt 0 ]; then
146        rm -f output.txt
147      printf 'make clean ... ' 2>&1      printf 'make clean ... ' 2>&1
148      make CLEAN >> make.log 2>&1      make CLEAN >> make.log 2>&1
149      if [ $? -ne 0 ]; then      if [ $? -ne 0 ]; then
# Line 203  runmodel() Line 204  runmodel()
204     if [ -x $2 ]; then     if [ -x $2 ]; then
205      if [ ! -r output.txt -o $quick -eq 0 ]; then      if [ ! -r output.txt -o $quick -eq 0 ]; then
206       echo runmodel: running... 1>&2       echo runmodel: running... 1>&2
207         rm -f output.txt
208       ( ./$2 > output.txt 2>&1 ) && return 0       ( ./$2 > output.txt 2>&1 ) && return 0
209       return 1       return 1
210      else      else
# Line 286  $0 [-help] [-quick] [-verbose] dir1 [dir Line 288  $0 [-help] [-quick] [-verbose] dir1 [dir
288   -debug     Produce even more output which will mean nothing to most   -debug     Produce even more output which will mean nothing to most
289   -clean     Do "make CLEAN" before compiling. This forces a complete rebuild.   -clean     Do "make CLEAN" before compiling. This forces a complete rebuild.
290   -longtest  Compare numeric output for mean and s.d. of variables.   -longtest  Compare numeric output for mean and s.d. of variables.
291     -noieee    By default, $0 uses the -ieee option for genmake. This turns it off.
292    
293  Normal usage:  Normal usage:
294   $0 *       Configure, compile, run and analyze in all experiment directories   $0 *       Configure, compile, run and analyze in all experiment directories
# Line 313  debug=0 Line 316  debug=0
316  verbose=1  verbose=1
317  quick=0  quick=0
318  clean=0  clean=0
319  ieee=0  ieee=1
320  longtest=0  longtest=0
321  expts=''  expts=''
322    
# Line 325  do Line 328  do
328     -verbose) verbose=2;;     -verbose) verbose=2;;
329     -debug) debug=1;;     -debug) debug=1;;
330     -clean) clean=1;;     -clean) clean=1;;
331     -ieee) ieee=1;;     -noieee) ieee=0;;
332     -longtest) longtest=1;;     -longtest) longtest=1;;
333     -quiet) verbose=0;;     -quiet) verbose=0;;
334     -help) show_help; exit 0;;     -help) show_help; exit 0;;
# Line 334  do Line 337  do
337   esac   esac
338  done  done
339    
340    if [ $clean -gt 0 -a $quick -gt 0 ]; then
341     echo You specified -quick and -clean together which conflict.
342     echo Please specify either -quick or -clean or neither but not both.
343     exit 1
344    fi
345    
346  #if [ ${#expts} -eq 0 ]; then  #if [ ${#expts} -eq 0 ]; then
347  # echo Scanning all directories  # echo Scanning all directories
348  # for arg in *  # for arg in *

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22