/[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.10 by adcroft, Fri Aug 10 16:49:51 2001 UTC revision 1.14 by adcroft, Wed Aug 15 17:17:01 2001 UTC
# Line 122  genmakemodel() Line 122  genmakemodel()
122   ( cd $1;   ( cd $1;
123     if [ $quick -eq 0 -o ! -r Makefile ]; then     if [ $quick -eq 0 -o ! -r Makefile ]; then
124      printf 'genmake ... ' 1>&2      printf 'genmake ... ' 1>&2
125      ../../../tools/genmake -ieee -mods=../code > make.log 2>&1      if [ $ieee -eq 0 ]; then
126         ../../../tools/genmake -mods=../code > make.log 2>&1
127        else
128         ../../../tools/genmake -ieee -mods=../code > make.log 2>&1
129        fi
130      if [ $? -ne 0 ]; then      if [ $? -ne 0 ]; then
131       tail make.log       tail make.log
132       echo genmakemodel: genmake failed 1>&2       echo genmakemodel: genmake failed 1>&2
# Line 282  $0 [-help] [-quick] [-verbose] dir1 [dir Line 286  $0 [-help] [-quick] [-verbose] dir1 [dir
286   -debug     Produce even more output which will mean nothing to most   -debug     Produce even more output which will mean nothing to most
287   -clean     Do "make CLEAN" before compiling. This forces a complete rebuild.   -clean     Do "make CLEAN" before compiling. This forces a complete rebuild.
288   -longtest  Compare numeric output for mean and s.d. of variables.   -longtest  Compare numeric output for mean and s.d. of variables.
289     -noieee    By default, $0 uses the -ieee option for genmake. This turns it off.
290    
291  Normal usage:  Normal usage:
292   $0 *       Configure, compile, run and analyze in all experiment directories   $0 *       Configure, compile, run and analyze in all experiment directories
293  EOF  EOF
294  }  }
295    
296    scandirs()
297    {
298    if [ $# -eq 0 ]; then
299     for arg in *
300      do
301       test -d $arg/input && echo $arg
302     done
303    else
304     echo $*
305    fi
306    }
307    
308  ###############################################################################  ###############################################################################
309    
310  # Main function  # Main function
# Line 297  debug=0 Line 314  debug=0
314  verbose=1  verbose=1
315  quick=0  quick=0
316  clean=0  clean=0
317    ieee=1
318  longtest=0  longtest=0
319  expts=''  expts=''
320    
# Line 308  do Line 326  do
326     -verbose) verbose=2;;     -verbose) verbose=2;;
327     -debug) debug=1;;     -debug) debug=1;;
328     -clean) clean=1;;     -clean) clean=1;;
329       -noieee) ieee=0;;
330     -longtest) longtest=1;;     -longtest) longtest=1;;
331     -quiet) verbose=0;;     -quiet) verbose=0;;
332     -help) show_help; exit 0;;     -help) show_help; exit 0;;
333       -*) echo Unrecognized option:$arg; exit 9;;
334     *) test -d $arg && expts=`echo $expts $arg`;;     *) test -d $arg && expts=`echo $expts $arg`;;
335   esac   esac
336  done  done
337    
338  if [ ${#expts} -eq 0 ]; then  #if [ ${#expts} -eq 0 ]; then
339   echo Scanning all directories  # echo Scanning all directories
340   for arg in *  # for arg in *
341    do  #  do
342     test -d $arg && expts=`echo $expts $arg`  #   test -d $arg && expts=`echo $expts $arg`
343   done  # done
344  fi  #fi
345    expts=`scandirs $expts`
346    
347  createcodelet  createcodelet
348    
# Line 354  do Line 375  do
375   echo Experiment: $dir   echo Experiment: $dir
376   echo   echo
377   unset genmake makedepend make run   unset genmake makedepend make run
378   results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --'   if [ $longtest -gt 0 ]; then
379   results='-- -- -- -- -- -- -- -- --'    results='-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --'
380     else
381      results='-- -- -- -- -- -- -- -- --'
382     fi
383   genmakemodel $dir/input && genmake=Y \   genmakemodel $dir/input && genmake=Y \
384   && makeclean $dir/input \   && makeclean $dir/input \
385   && makedependmodel $dir/input && makedepend=Y \   && makedependmodel $dir/input && makedepend=Y \

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22