[Dart-dev] DART/branches Revision: 10872

dart at ucar.edu dart at ucar.edu
Thu Jan 12 17:01:49 MST 2017


raeder at ucar.edu
2017-01-12 17:01:47 -0700 (Thu, 12 Jan 2017)
324
This is the first interface between DART and CESM2_0_beta04:CAM.
It has been tested for a 2 degree, CAM4 with 3 members,
so it's just functional at this point.   More testing
and addition of perfect_model and setup_advanced will
be forthcoming.  There will also be updates for CESM2_0_beta05,
and CESM2, when it's released.



Added: DART/branches/rma_fixed_filenames/models/cam-fv/scripts_cesm2_0/DART_config
===================================================================
--- DART/branches/rma_fixed_filenames/models/cam-fv/scripts_cesm2_0/DART_config	                        (rev 0)
+++ DART/branches/rma_fixed_filenames/models/cam-fv/scripts_cesm2_0/DART_config	2017-01-13 00:01:47 UTC (rev 10872)
@@ -0,0 +1,363 @@
+#!/bin/csh
+#
+# 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: DART_config 7742 2015-03-20 00:17:16Z thoar $
+
+# ---------------------
+# 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