[Dart-dev] DART/branches Revision: 13036

dart at ucar.edu dart at ucar.edu
Wed Mar 20 11:29:58 MDT 2019


thoar at ucar.edu
2019-03-20 11:29:58 -0600 (Wed, 20 Mar 2019)
308
Adding an orphaned forward operator originally from Tarkeshwar Singh, IIT Delhi.
This module is on the trunk, must have been after the split to rma_trunk.
Updating the LMDZ build support should anyone want to update this model to
run with rma_trunk/Manhattan.  The LMDZ/model_mod.f90  is not rma-compliant.




Modified: DART/branches/recam/models/LMDZ/work/input.nml
===================================================================
--- DART/branches/recam/models/LMDZ/work/input.nml	2019-03-20 16:41:05 UTC (rev 13035)
+++ DART/branches/recam/models/LMDZ/work/input.nml	2019-03-20 17:29:58 UTC (rev 13036)
@@ -158,8 +158,8 @@
    output_obs_def_mod_file = '../../../observations/forward_operators/obs_def_mod.f90',
   input_files              = '../../../observations/forward_operators/obs_def_gps_mod.f90',
                              '../../../observations/forward_operators/obs_def_altimeter_mod.f90',
-                             '../../../observations/forward_operators/obs_def_reanalysis_bufr_mod.f90'
-                             '../../../observations/forward_operators/obs_def_AIRS_mod.f90'
+                             '../../../observations/forward_operators/obs_def_reanalysis_bufr_mod.f90',
+                             '../../../observations/forward_operators/obs_def_AIRS_mod.f90',
                              '../../../observations/forward_operators/obs_def_insat_mod.f90'
    /
 

Modified: DART/branches/recam/models/LMDZ/work/quickbuild.csh
===================================================================
--- DART/branches/recam/models/LMDZ/work/quickbuild.csh	2019-03-20 16:41:05 UTC (rev 13035)
+++ DART/branches/recam/models/LMDZ/work/quickbuild.csh	2019-03-20 17:29:58 UTC (rev 13036)
@@ -7,114 +7,185 @@
 # DART $Id$
 
 #----------------------------------------------------------------------
-# compile all programs in the current directory with a mkmf_xxx file.
+# compile all programs in the current directory that have a mkmf_xxx file.
 #
 # usage: [ -mpi | -nompi ]
+#
+#
+# environment variable options:
+#  before running this script, do:
+#   "setenv CODE_DEBUG 1" (csh) or "export CODE_DEBUG=1" (bash)
+#  to keep the .o and .mod files in the current directory instead of 
+#  removing them at the end.  this usually improves runtime error reports 
+#  and these files are required by most debuggers.
+# 
+#  to pass any flags to the 'make' program, set DART_MFLAGS in your environment.
+#  e.g. to build faster by running 4 (or your choice) compiles at once:
+#   "setenv DART_MFLAGS '-j 4' " (csh) or "export DART_MFLAGS='-j 4' " (bash)
 #----------------------------------------------------------------------
-# 'preprocess' is a program that culls the appropriate sections of the
-# observation module for the observations types in 'input.nml'; the
-# resulting source file is used by all the remaining programs,
-# so this MUST be run first.
-#----------------------------------------------------------------------
 
-\rm -f preprocess *.o *.mod
-\rm -f ../../../obs_def/obs_def_mod.f90
-\rm -f ../../../obs_kind/obs_kind_mod.f90
+# this model name:
+set BUILDING = "LMDZ"
 
-set MODEL = "LMDZ"
+# programs which have the option of building with MPI:
+set MPI_TARGETS = "filter perfect_model_obs model_mod_check closest_member_tool"
 
-@ n = 1
+# set default (override with -mpi or -nompi):
+#  0 = build without MPI, 1 = build with MPI
+set with_mpi = 0
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
+# ---------------
+# shouldn't have to modify this script below here.
 
-csh  mkmf_preprocess
-make || exit $n
+if ( $#argv >= 1 ) then
+   if ( "$1" == "-mpi" ) then
+      set with_mpi = 1 
+   else if ( "$1" == "-nompi" ) then
+      set with_mpi = 0
+   else
+      echo usage: $0 '[ -mpi | -nompi ]'
+      exit 0
+   endif
+endif
 
-./preprocess || exit 99
+set preprocess_done = 0
+set tdebug = 0
+set cdebug = 0
+set mflags = ''
 
+# environment vars this script looks for
+if ( $?CODE_DEBUG ) then
+   set cdebug = $CODE_DEBUG
+endif
+if ( $?DART_TEST ) then
+   set tdebug = $DART_TEST
+endif
+if ( $?DART_MFLAGS ) then
+   set mflags = "$DART_MFLAGS"
+endif
+
+
+\rm -f *.o *.mod 


More information about the Dart-dev mailing list