[Dart-dev] [3432] DART/trunk/ncep_obs/work/quickbuild.csh: Add missing build script.

nancy at ucar.edu nancy at ucar.edu
Fri Jun 27 13:15:21 MDT 2008


An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/dart-dev/attachments/20080627/f0045b1e/attachment.html
-------------- next part --------------
Added: DART/trunk/ncep_obs/work/quickbuild.csh
===================================================================
--- DART/trunk/ncep_obs/work/quickbuild.csh	                        (rev 0)
+++ DART/trunk/ncep_obs/work/quickbuild.csh	2008-06-27 19:15:20 UTC (rev 3432)
@@ -0,0 +1,69 @@
+#!/bin/csh
+#
+# Data Assimilation Research Testbed -- DART
+# Copyright 2004-2008, Data Assimilation Research Section
+# University Corporation for Atmospheric Research
+# Licensed under the GPL -- www.gpl.org/licenses/gpl.html
+#
+# <next few lines under version control, do not edit>
+# $URL$
+# $Id$
+# $Revision$
+# $Date$
+
+# Script to manage the compilation of the executables in this directory.
+#
+# The 'preprocess' step constructs 2 modules which define which DART 
+# observation types will be compiled into the code.  To add (or remove)
+# obs types, edit the 'input.nml' namelist file, and find the &preprocess_nml
+# section.  The 'input_types' item is an array of character strings listing
+# the observation definition files which will be included when preprocess
+# is compiled and run.  Add and remove filenames from this list to control
+# the observation types.
+#
+#----------------------------------------------------------------------
+
+\rm -f preprocess *.o *.mod
+\rm -f ../../obs_def/obs_def_mod.f90
+\rm -f ../../obs_kind/obs_kind_mod.f90
+
+set MODEL = "create_real_obs"
+
+@ n = 1
+
+echo
+echo
+echo "---------------------------------------------------------------"
+echo "${MODEL} build number ${n} is preprocess"
+
+csh  mkmf_preprocess
+make || exit $n
+
+./preprocess || exit 99
+
+#----------------------------------------------------------------------
+# Build all the single-threaded targets
+#----------------------------------------------------------------------
+
+foreach TARGET ( mkmf_* )
+
+   set PROG = `echo $TARGET | sed -e 's#mkmf_##'`
+
+   switch ( $TARGET )
+   case mkmf_preprocess:
+      breaksw
+   default:
+      @ n = $n + 1
+      echo
+      echo "---------------------------------------------------"
+      echo "${MODEL} build number ${n} is ${PROG}" 
+      \rm -f ${PROG}
+      csh $TARGET || exit $n
+      make        || exit $n
+      breaksw
+   endsw
+end
+
+echo "Success: All DART programs compiled."  
+exit 0
+


Property changes on: DART/trunk/ncep_obs/work/quickbuild.csh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:keywords
   + Date Rev Author URL Id


More information about the Dart-dev mailing list