[Dart-dev] DART/branches Revision: 11653

dart at ucar.edu dart at ucar.edu
Tue May 23 16:09:30 MDT 2017


raeder at ucar.edu
2017-05-23 16:09:30 -0600 (Tue, 23 May 2017)
1086
Added cesm2_0_beta05 for development work.  Changes will eventually be folded into cesm2_0
and this directory will be removed.

Mainly added options in the setup scripts to handle cheyenne's PBS environment.
   Removed last of the BATCH_SYSTEM code, which is unneeded and doesn't work in CESM2_0_beta05.
CESM's case.st_archive didn't work, which prompted changes to the archiving
sections of the setup and DART_config scripts.
> Moved modifications of case.{st,lt}_archive out of DART_config into setup_{hybrid,advanced}.
> Moved all modifications of case.{st,lt}_archive to follow case.setup call
  (so that they exist when setup* modifies them).
> Added changes to {st,lt}_archive to work better on cheyenne; use 1 processor in 'share'
  instead of 36 in 'regular'.
Fixed special character escapes in inflation cookie section.

CAM doesn't give the same answers on cheyenne, so the test cases CAM4_test2_hyb and
  CAM6_test2_adv don't give the same answers as *test1* from yellowstone.
Removed spinup* and obs_seq_tool_series.csh because they aren't needed in this development dir.





Added: DART/branches/rma_trunk/models/cam-fv/shell_scripts/cesm2_0_beta05/assimilate.csh
===================================================================
--- DART/branches/rma_trunk/models/cam-fv/shell_scripts/cesm2_0_beta05/assimilate.csh	                        (rev 0)
+++ DART/branches/rma_trunk/models/cam-fv/shell_scripts/cesm2_0_beta05/assimilate.csh	2017-05-23 22:09:30 UTC (rev 11653)
@@ -0,0 +1,749 @@
+#!/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
+
+# 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 DATA_ASSIMILATION_CYCLES        `./xmlquery DATA_ASSIMILATION_CYCLES -value`
+cd $RUNDIR
+
+setenv save_all_inf TRUE
+# A switch to signal how often to save the stages' ensemble members: NONE, RESTART_TIMES, ALL
+setenv save_stages TRUE
+
+set BASEOBSDIR = BOGUSBASEOBSDIR
+
+# 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 ys*:
+      # NCAR "yellowstone"
+      set   MOVE = 'mv -fv'
+      set   COPY = 'cp -fv --preserve=timestamps'
+      set   LINK = 'ln -fvs'
+      set REMOVE = 'rm -fr'
+      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
+   case ch*:
+      # NCAR "cheyenne"   -v removed because it doesn't work on (my) cheyenne.
+      set   MOVE = 'mv -f'
+      set   COPY = 'cp -f --preserve=timestamps'
+      set   LINK = 'ln -fs'
+      set REMOVE = 'rm -fr'
+      # echo "Trying to set TASKS_PER_NODE using PBS_NUM_PPN $PBS_NUM_PPN"
+      # Unavailable for some reason:  set TASKS_PER_NODE = $PBS_NUM_PPN 
+      set TASKS_PER_NODE = 36
+      setenv MP_DEBUG_NOTIMEOUT yes
+      set  LAUNCHCMD = mpiexec_mpt
+   breaksw
+
+   case linux_system_with_utils_in_other_dirs*:
+      # example of pointing this script at a different set of basic commands
+      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'
+      set LAUNCHCMD  = mpirun.lsf
+   breaksw
+
+   default:
+      # NERSC "hopper"
+      set   MOVE = 'mv -fv'
+      set   COPY = 'cp -fv --preserve=timestamps'
+      set   LINK = 'ln -fvs'
+      set REMOVE = 'rm -fr'
+      set LAUNCHCMD  = "aprun -n $TOTALPES"
+
+   breaksw
+endsw


More information about the Dart-dev mailing list