[Dart-dev] DART/branches Revision: 10913

dart at ucar.edu dart at ucar.edu
Wed Jan 18 12:12:09 MST 2017


mizzi at ucar.edu
2017-01-18 12:12:09 -0700 (Wed, 18 Jan 2017)
439
Adding the actual targets of the links.
# lrwxrwxrwx 1 mizzi ncar 31 Jan 18 11:58 quickbuild.csh -> ../shell_scripts/quickbuild.csh*
# lrwxrwxrwx 1 mizzi ncar 32 Jan 18 12:00 wrf_dart_obs_preprocess.f90 -> wrf_chem_dart_obs_preprocess.f90
# lrwxrwxrwx 1 mizzi ncar 25 Jan 18 12:01 iasi_ascii_to_obs.f90 -> iasi_ascii_to_obs_APM.f90
# lrwxrwxrwx 1 mizzi ncar 36 Jan 18 12:03 mopitt_ascii_to_obs.f90 -> mopitt_no_transform_ascii_to_obs.f90




Added: DART/branches/mizzi/models/coamps/work/quickbuild.csh
===================================================================
--- DART/branches/mizzi/models/coamps/work/quickbuild.csh	                        (rev 0)
+++ DART/branches/mizzi/models/coamps/work/quickbuild.csh	2017-01-18 19:12:09 UTC (rev 10913)
@@ -0,0 +1,146 @@
+#!/bin/tcsh
+#
+# DART software - Copyright 2004 - 2013 UCAR. This open source software is
+# provided by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id$
+#
+# Script to manage the compilation of all components for this model;
+
+#----------------------------------------------------------------------
+# Extra checks for missing files.
+if ( ! -e ../get_name_info.f90 || ! -e ../coamps_intrinsic_mod.f90 ) then
+ echo ''
+ echo 'ERROR:'
+ echo '../get_name_info.f90 and/or ../coamps_intrinsic_mod.f90 not found'
+ echo ''
+ echo 'To build the COAMPS/DART code see ../shell_scripts/initialize_dart.sh'
+ echo 'for steps to do before building the code in this directory.'
+ echo 'The COAMPS model code itself must also be obtained from'
+ echo 'http://www.nrlmry.navy.mil/coamps-web/web/home'
+ echo ''
+ exit 1
+endif
+if ( ! -e input.nml ) then
+ echo ''
+ echo 'ERROR: input.nml not found'
+ echo ''
+ echo 'Copy ../templates/EXAMPLE.input.nml to ./input.nml (in the work dir)'
+ echo 'and make any necessary changes.'
+ echo ''
+ exit 1
+endif
+#----------------------------------------------------------------------
+
+#----------------------------------------------------------------------
+# '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
+
+set MODEL = "coamps"
+
+@ 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
+
+\rm -f *.o *.mod input.nml*_default
+
+if ( $#argv == 1 && "$1" == "-mpi" ) then
+  echo "Success: All single task DART programs compiled."  
+  echo "Script now compiling MPI parallel versions of the DART programs."
+else if ( $#argv == 1 && "$1" == "-nompi" ) then
+  echo "Success: All single task DART programs compiled."  
+  echo "Script is exiting without building the MPI version of the DART programs."
+  exit 0
+else
+  echo ""
+  echo "Success: All single task DART programs compiled."  


More information about the Dart-dev mailing list