[Dart-dev] DART/branches Revision: 12947

dart at ucar.edu dart at ucar.edu
Thu Jan 3 17:38:45 MST 2019


thoar at ucar.edu
2019-01-03 17:38:45 -0700 (Thu, 03 Jan 2019)
173
This is the assimilate.csh script Tim used to test the num_output_obs_members failures.
It does not perform any of the archiving or compression - just to keep it 'simple'.




Added: DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/test_assimilate.csh
===================================================================
--- DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/test_assimilate.csh	                        (rev 0)
+++ DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/test_assimilate.csh	2019-01-04 00:38:45 UTC (rev 12947)
@@ -0,0 +1,637 @@
+#!/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$
+
+# This script is designed to interface cesm2_0_beta05 or later
+# and $dart/rma_trunk v11###.
+
+# See 'RMA' for places where there are questions about RMA,
+# especially file naming.
+
+#=========================================================================
+# Block 0: Set command environment
+#=========================================================================
+# This block is an attempt to localize all the machine-specific
+# changes to this script such that the same script can be used
+# on multiple platforms. This will help us maintain the script.
+
+echo "`date` -- BEGIN CAM_ASSIMILATE"
+pwd
+
+set nonomatch       # suppress "rm" warnings if wildcard does not match anything
+
+setenv CASEROOT $1
+# Python uses C indexing on loops; cycle = [0,....,$DATA_ASSIMILATION_CYCLES - 1]
+# "Fix" that here, so the rest of the script isn't confusing.
+@ cycle = $2 + 1
+
+# Tag DART's state output with names using CESM's convention:  
+#    ${case}.${scomp}[_$inst].${filetype}[.$dart_file].${date}.nc 
+#    These should all be named with $scomp = "cam" to distinguish
+#    them from the same output from other components in multi-component assims.
+set scomp = "cam"
+
+# In CESM1_4 xmlquery must be executed in $CASEROOT.
+cd ${CASEROOT}
+setenv CASE           $CASEROOT:t
+setenv ensemble_size  `./xmlquery NINST_ATM     --value`
+setenv CAM_DYCORE     `./xmlquery CAM_DYCORE    --value`
+setenv EXEROOT        `./xmlquery EXEROOT       --value`
+setenv RUNDIR         `./xmlquery RUNDIR        --value`
+setenv archive        `./xmlquery DOUT_S_ROOT   --value`
+setenv TOTALPES       `./xmlquery TOTALPES      --value`
+setenv CONT_RUN       `./xmlquery CONTINUE_RUN  --value`
+setenv DATA_ASSIMILATION_CYCLES        `./xmlquery DATA_ASSIMILATION_CYCLES --value`
+cd $RUNDIR
+
+# A switch to save all the inflation files
+setenv save_all_inf TRUE
+if (! -d $archive/esp/hist) mkdir -p $archive/esp/hist
+
+# A switch to signal how often to save the stages' ensemble members: NONE, RESTART_TIMES, ALL
+# Mean and sd will always be saved.
+setenv save_stages_freq RESTART_TIMES
+
+set BASEOBSDIR = /glade/p/cisl/dares/Observations/NCEP+ACARS+GPS
+
+# ==============================================================================
+# standard commands:
+#
+# Make sure that this script is using standard system commands
+# instead of aliases defined by the user.
+# If the standard commands are not in the location listed below,
+# change the 'set' commands to use them.
+# The FORCE options listed are required.
+# The VERBOSE options are useful for debugging, but are optional because
+# some systems don't like the -v option to any of the following.
+# E.g. NCAR's "cheyenne".
+# ==============================================================================
+
+set nonomatch       # suppress "rm" warnings if wildcard does not match anything
+set   MOVE = '/usr/bin/mv -f'
+set   COPY = '/usr/bin/cp -f --preserve=timestamps'
+set   LINK = '/usr/bin/ln -fs'
+set   LIST = '/usr/bin/ls '
+set REMOVE = '/usr/bin/rm -fr'
+
+# If your shell commands don't like the -v option and you want copies to be echoed,
+# set this to be TRUE.  Otherwise, it should be FALSE.
+set MOVEV   = FALSE
+set COPYV   = FALSE
+set LINKV   = FALSE
+set REMOVEV = FALSE
+
+switch ($HOSTNAME)
+   case ys*:
+      # NCAR "yellowstone"
+      set TASKS_PER_NODE = `echo $LSB_SUB_RES_REQ | sed -ne '/ptile/s#.*\[ptile=\([0-9][0-9]*\)]#\1#p'`
+      setenv MP_DEBUG_NOTIMEOUT yes
+      set  LAUNCHCMD = mpirun.lsf
+      breaksw
+
+   case ch*:


More information about the Dart-dev mailing list