[Dart-dev] DART/branches Revision: 12900

dart at ucar.edu dart at ucar.edu
Wed Oct 10 14:45:02 MDT 2018


thoar at ucar.edu
2018-10-10 14:45:02 -0600 (Wed, 10 Oct 2018)
909
The assimilate.csh.template file has been modified to properly archive DART diagnostic
files under ?all? domain configurations.

Reference the new filesystem layout on Cheyenne.
The freerun and spinup scripts should be consolidated - the terminology is confusing.
We generally start from a single CLM state that is already 'spun up'; we are taking
that single state and performing a 'free run' where that state is forced by an
ensemble of data atmospheres.

Some of the setup scripts have been modified to work with DATM files at a different
resolution than the CLM resolution. These are generally the freerun versions.
It is presumed that the assimilation experiments will stage output from a freerun,
so a change of resolution is not natively supported.

The CLM5_setup_pmo is being modified to use a separate parameter file that will have
all the user-specified variables in one place. Under Development.




Copied: DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_DART_config (from rev 12899, DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_DART_config.template)
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_DART_config	                        (rev 0)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_DART_config	2018-10-10 20:45:02 UTC (rev 12900)
@@ -0,0 +1,322 @@
+#!/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. 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.
+#
+# CLM is the only active model component.
+# CESM starts and stops to allow for CLM to assimilate every 24 hours.
+#
+# This script will build the DART executables if they are not found.
+#
+# ---------------------
+# 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.
+# ==============================================================================
+
+cd BOGUS_CASEROOT_STRING
+
+# OBSROOT  should reference the stockpile of observation sequence files.
+# DARTROOT should reference the base portion of the DART code tree.
+# Both of these should be set by the DART CESM setup script.
+
+setenv OBSROOT       BOGUS_DART_OBS_STRING
+setenv DARTROOT      BOGUS_DART_ROOT_STRING
+setenv EXEROOT       `./xmlquery EXEROOT   --value`
+setenv RUNDIR        `./xmlquery RUNDIR    --value`
+setenv CASEROOT      `./xmlquery CASEROOT  --value`
+setenv CASE          `./xmlquery CASE      --value`
+setenv STOP_N        `./xmlquery STOP_N    --value`
+setenv num_instances `./xmlquery NINST_LND --value`
+
+#>@todo ... if num_instances = 1, the we MUST be pmo ...
+
+# ==============================================================================
+# ==============================================================================
+
+# Now the script to be run is determined by
+# CESM's env_run.xml DATA_ASSIMILATION* variables.
+#
+# DATA_ASSIMILATION_CYCLES says how many cycles to run in each job before a RESUBMIT.
+# Set to 1 for the first cycle.
+# When the job (not each cycle) is finished the short_term archiver will run and,
+# if RESUBMIT > 0, resubmit a new case.run job.
+
+./xmlchange DATA_ASSIMILATION_LND=TRUE
+./xmlchange DATA_ASSIMILATION_CYCLES=1
+./xmlchange DATA_ASSIMILATION_SCRIPT=${CASEROOT}/assimilate.csh
+
+# ==============================================================================
+# 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'


More information about the Dart-dev mailing list