[Dart-dev] DART/branches Revision: 11537

dart at ucar.edu dart at ucar.edu
Thu Apr 27 10:36:00 MDT 2017


nancy at ucar.edu
2017-04-27 10:36:00 -0600 (Thu, 27 Apr 2017)
199
update to add new modules.

also rework a couple quickbuilds to allow
for ease in testing (option to remove .o and
.mods between each build.  checks that the
path_names files are actually correct.)




Modified: DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh
===================================================================
--- DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh	2017-04-27 16:33:54 UTC (rev 11536)
+++ DART/branches/model_mod_changes/models/bgrid_solo/work/quickbuild.csh	2017-04-27 16:36:00 UTC (rev 11537)
@@ -21,7 +21,7 @@
 #----------------------------------------------------------------------
 
 # this model name:
-set MODEL = "bgrid_solo"
+set BUILDING = "bgrid_solo"
 
 # programs which have the option of building with MPI:
 set MPI_TARGETS = "filter perfect_model_obs"
@@ -46,11 +46,15 @@
 endif
 
 set preprocess_done = 0
+set tdebug = 0
 set cdebug = 0
 
 if ( $?CODE_DEBUG ) then
    set cdebug = $CODE_DEBUG
 endif
+if ( $?DART_TEST ) then
+   set tdebug = $DART_TEST
+endif
 
 \rm -f *.o *.mod 
 
@@ -71,7 +75,7 @@
          @ n = $n + 1
          echo
          echo "---------------------------------------------------"
-         echo "constructing $MODEL data file $n named $OUTNAME" 
+         echo "constructing $BUILDING data file $n named $OUTNAME" 
       
          ncgen -o $OUTNAME $DATAFILE  || exit $n
       endif
@@ -101,11 +105,16 @@
    @ n = $n + 1
    echo
    echo "---------------------------------------------------"
-   echo "$MODEL build number $n is $PROG" 
+   echo "$BUILDING build number $n is $PROG" 
    \rm -f $PROG
    csh $TARGET || exit $n
    make        || exit $n
 
+   if ( $tdebug ) then
+      echo 'removing all files between builds'
+      \rm -f *.o *.mod
+   endif
+
    # preprocess creates module files that are required by
    # the rest of the executables, so it must be run in addition
    # to being built.
@@ -147,11 +156,16 @@
    @ n = $n + 1
    echo
    echo "---------------------------------------------------"
-   echo "$MODEL MPI build number $n is $PROG" 
+   echo "$BUILDING with MPI build number $n is $PROG" 
    \rm -f $PROG
    csh $TARGET -mpi || exit $n
    make             || exit $n
 
+   if ( $tdebug ) then
+      echo 'removing all files between builds'
+      \rm -f *.o *.mod
+   endif
+
 end
 
 if ( $cdebug ) then 

Modified: DART/branches/model_mod_changes/models/cam-fv/work/quickbuild.csh
===================================================================
--- DART/branches/model_mod_changes/models/cam-fv/work/quickbuild.csh	2017-04-27 16:33:54 UTC (rev 11536)
+++ DART/branches/model_mod_changes/models/cam-fv/work/quickbuild.csh	2017-04-27 16:36:00 UTC (rev 11537)
@@ -21,7 +21,7 @@
 #----------------------------------------------------------------------
 
 # this model name:
-set MODEL = "cam-fv"
+set BUILDING = "CAM FV"
 
 # programs which have the option of building with MPI:
 set MPI_TARGETS = "filter perfect_model_obs model_mod_check wakeup_filter"
@@ -46,12 +46,15 @@
 endif
 
 set preprocess_done = 0
-set debug = 1
+set tdebug = 0
 set cdebug = 0
 
 if ( $?CODE_DEBUG ) then
    set cdebug = $CODE_DEBUG
 endif
+if ( $?DART_TEST ) then
+   set tdebug = $DART_TEST


More information about the Dart-dev mailing list