[Dart-dev] DART/branches Revision: 11314

dart at ucar.edu dart at ucar.edu
Tue Mar 14 15:37:49 MDT 2017


raeder at ucar.edu
2017-03-14 15:37:49 -0600 (Tue, 14 Mar 2017)
718
Added shell_scripts/no_assimilate.csh, which is referenced by ./DART_config,
Removed same from shell_scripts/cesm#_#.

Modified setup scripts and DART_config to make a single version of DART_config
work with the cesm1_5 and cesm2_0 setup scripts.  Moved DART_config out of
the cesm#_# directories.  But the setup_scripts will still look in their own
directory for DART_config, in case a specialized one has been put there.

Added setup_advanced, which can set up more specialized CAM assimilations,
including using the high resolution SSTICE data sets (AVHRR).

Added cesm2_0/spinup_single* for setting up and running a single member CAM
from Jan 1 to the desired ensemble spinup start date.

Updated work/input.nml.




Copied: DART/branches/rma_trunk/models/cam-fv/shell_scripts/DART_config (from rev 11296, DART/branches/rma_trunk/models/cam-fv/shell_scripts/cesm1_5/DART_config)
===================================================================
--- DART/branches/rma_trunk/models/cam-fv/shell_scripts/DART_config	                        (rev 0)
+++ DART/branches/rma_trunk/models/cam-fv/shell_scripts/DART_config	2017-03-14 21:37:49 UTC (rev 11314)
@@ -0,0 +1,362 @@
+#!/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
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id$
+
+# ---------------------
+# Purpose
+# ---------------------
+#
+# This script integrates DART with a pre-existing CESM multi-instance case.
+# It must be run from a valid CASEROOT directory and some environment variables
+# must be set (as in CESM#_#_setup_YYY). If the case was created
+# using one of the DART scripts, this script should be staged in the
+# CASEROOT directory automatically, and DARTROOT is set at that time.
+#
+# CAM is the only active model component.
+# CESM starts and stops to allow for CAM to assimilate every 6 hours.
+#
+# This script will build the DART executables if they are not found.
+#
+# There are many CESM binary files in big-endian format, and DART reads
+# some of them, so you MUST compile DART accordingly e.g.,
+# ifort -convert big_endian
+# Contact dart at ucar.edu if you want to use another compiler.
+#
+# ---------------------
+# How to set up the script
+# ---------------------
+#
+# -- Ensure DARTROOT references a valid DART directory.
+# -- Examine the whole script to identify things to change for your experiments.
+# -- Provide any initial files needed by your run:
+#       inflation
+#       sampling error correction
+# -- Run this script.
+# -- Edit the DART input.nml that appears in the ${CASEROOT} directory.
+# -- Submit the job using ${CASEROOT}/${CASE}.submit
+#
+# ==============================================================================
+# Get the environment of the case - defines number of instances/ensemble size ...
+# Each model component has their own number of instances.
+# ==============================================================================
+
+if ( ! -e ./xmlquery ) then
+   echo "ERROR: $0 must be run from a CASEROOT directory".
+   exit -1
+endif
+
+setenv CASE          `./xmlquery CASE           -value`
+setenv CASEROOT      `./xmlquery CASEROOT       -value`
+# old; setenv CCSM_COMPSET  `./xmlquery CCSM_COMPSET   -value`
+setenv COMPSET       `./xmlquery COMPSET   -value`
+setenv EXEROOT       `./xmlquery EXEROOT        -value`
+setenv NINST_ATM     `./xmlquery NINST_ATM      -value`
+setenv RUNDIR        `./xmlquery RUNDIR         -value`
+
+set num_instances = $NINST_ATM
+
+# DARTROOT is set by the DART CESM_configure scripts. Under certain
+# situations, you may need to set this manually. It should reference the
+# base portion of the DART code tree.
+
+setenv DARTROOT  BOGUS_DART_ROOT_STRING
+
+# ==============================================================================
+# Some
+# ==============================================================================
+
+set nonomatch       # suppress "rm" warnings if wildcard does not match anything
+
+# The FORCE options are not optional.
+# The VERBOSE options are useful for debugging though
+# some systems don't like the -v option to any of the following
+switch ("`hostname`")
+   case be*:
+      # NCAR "bluefire"
+      set   MOVE = '/usr/local/bin/mv -fv'
+      set   COPY = '/usr/local/bin/cp -fv --preserve=timestamps'
+      set   LINK = '/usr/local/bin/ln -fvs'
+      set REMOVE = '/usr/local/bin/rm -fr'
+
+   breaksw
+   default:
+      # NERSC "hopper", NWSC "yellowstone"
+      set   MOVE = '/bin/mv -fv'
+      set   COPY = '/bin/cp -fv --preserve=timestamps'
+      set   LINK = '/bin/ln -fvs'
+      set REMOVE = '/bin/rm -fr'
+
+   breaksw
+endsw
+
+echo ""


More information about the Dart-dev mailing list