[Dart-dev] DART/branches Revision: 11220

dart at ucar.edu dart at ucar.edu
Tue Mar 7 11:28:53 MST 2017


nancy at ucar.edu
2017-03-07 11:28:53 -0700 (Tue, 07 Mar 2017)
183
separate building from "testing", so we can tell if all
the models we're supporting for rma at least compile.
they may not run because of missing input files or other
benign things.




Modified: DART/branches/rma_trunk/models/buildall.csh
===================================================================
--- DART/branches/rma_trunk/models/buildall.csh	2017-03-07 18:26:49 UTC (rev 11219)
+++ DART/branches/rma_trunk/models/buildall.csh	2017-03-07 18:28:53 UTC (rev 11220)
@@ -39,6 +39,10 @@
 
 #----------------------------------------------------------------------
 
+if ( ! $?REMOVE) then
+   setenv REMOVE 'rm -rf'
+endif
+
 if ( ! $?host) then
    setenv host `uname -n`
 endif
@@ -46,17 +50,12 @@
 echo "Running DART model test on $host"
 
 #----------------------------------------------------------------------
-# Compile 'filter' for a wide range of models.
-# CAVEATS:
-#    The PBL_1d model relies on routines that require special compiler
-#    flags to be recognized as F90 code. Since these are compiler-specific,
-#    I have not figured out a way yet to automate this. 
-#
-#----------------------------------------------------------------------
 
 set modeldir = `pwd`
 
-foreach MODEL ( \
+# set the list of models to include here
+
+set DO_THESE_MODELS = ( \
   lorenz_63 \
   lorenz_84 \
   lorenz_96 \
@@ -71,14 +70,23 @@
   mpas_atm \
   POP \
   ROMS \
-  wrf )
-  # many models intentionally omitted.
+  wrf \
+)
+
+
+#----------------------------------------------------------------------
+# Compile all executables for each model.
+#----------------------------------------------------------------------
+
+@ modelnum = 1
+
+foreach MODEL ( $DO_THESE_MODELS ) 
     
     echo
     echo
     echo "=================================================================="
     echo "=================================================================="
-    echo "Compiling and testing $MODEL starting at "`date`
+    echo "Compiling $MODEL starting at "`date`
     echo "=================================================================="
     echo "=================================================================="
     echo
@@ -88,21 +96,65 @@
 
     ./quickbuild.csh ${QUICKBUILD_ARG} || exit 3
 
+    @ modelnum = $modelnum + 1
+
+    echo
+    echo
+    echo "=================================================================="
+    echo "=================================================================="
+    echo "End of $MODEL build at "`date`
+    echo "=================================================================="
+    echo "=================================================================="
+    echo
+    echo
+
+end
+
+#----------------------------------------------------------------------
+# Run PMO and filter if possible.  Save and restore the original input.nml.
+#----------------------------------------------------------------------
+
+@ modelnum = 1
+
+foreach MODEL ( $DO_THESE_MODELS ) 
+    
+    if ($MODEL == 'bgrid_solo') then
+      echo 'skipping bgrid run for now'
+      continue
+    endif
+
+    echo
+    echo
+    echo "=================================================================="
+    echo "=================================================================="
+    echo "Testing $MODEL starting at "`date`
+    echo "=================================================================="
+    echo "=================================================================="


More information about the Dart-dev mailing list