[Dart-dev] DART/branches Revision: 11922

dart at ucar.edu dart at ucar.edu
Wed Aug 30 11:17:42 MDT 2017


nancy at ucar.edu
2017-08-30 11:17:42 -0600 (Wed, 30 Aug 2017)
48
bringing ikeda quickbuild up to latest version




Modified: DART/branches/rma_trunk/models/ikeda/work/quickbuild.csh
===================================================================
--- DART/branches/rma_trunk/models/ikeda/work/quickbuild.csh	2017-08-30 17:13:34 UTC (rev 11921)
+++ DART/branches/rma_trunk/models/ikeda/work/quickbuild.csh	2017-08-30 17:17:42 UTC (rev 11922)
@@ -1,4 +1,4 @@
-#!/bin/csh
+#!/bin/csh 
 #
 # DART software - Copyright UCAR. This open source software is provided
 # by UCAR, "as is", without charge, subject to all terms of use at
@@ -7,132 +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.
 #----------------------------------------------------------------------
-# The input model states for both perfect_model_obs and filter come
-# from netCDF files and must be built from the source .cdl files.
-#----------------------------------------------------------------------
 
-which ncgen > /dev/null
-if ($status != 0) then
-  echo "The required input netCDF files must be build using 'ncgen'"
-  echo "'ncgen' is not currently available. It comes with every"
-  echo "netCDF installation and is needed by DART. Stopping."
-  exit 1
+# this model name:
+set BUILDING = "Ikeda"
+
+# programs which have the option of building with MPI:
+set MPI_TARGETS = "filter perfect_model_obs"
+
+# set default (override with -mpi or -nompi):
+#  0 = build without MPI, 1 = build with MPI
+set with_mpi = 0
+
+
+# ---------------
+# shouldn't have to modify this script below here.
+
+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
 
-if ( ! -e perfect_input.nc ) ncgen -o perfect_input.nc perfect_input.cdl
-if ( ! -e  filter_input.nc ) ncgen -o  filter_input.nc  filter_input.cdl
+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 
+
 #----------------------------------------------------------------------
-# '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.
+# Build any NetCDF files from .cdl files
 #----------------------------------------------------------------------
 
-\rm -f preprocess *.o *.mod
-\rm -f ../../../obs_def/obs_def_mod.f90
-\rm -f ../../../obs_kind/obs_kind_mod.f90
+@ n = 0
 
-set MODEL = "ikeda"
+@ has_cdl = `ls *.cdl | wc -l` >& /dev/null
 
-@ n = 1
+if ( $has_cdl > 0 ) then
 
-echo
-echo
-echo "---------------------------------------------------------------"
-echo "${MODEL} build number ${n} is preprocess"
+   which ncgen > /dev/null


More information about the Dart-dev mailing list