[Dart-dev] [6503] DART/trunk/models/CESM/shell_scripts: minor tweek to cam_assimilate to be consistent with

nancy at ucar.edu nancy at ucar.edu
Wed Oct 9 15:08:32 MDT 2013


Revision: 6503
Author:   nancy
Date:     2013-10-09 15:08:31 -0600 (Wed, 09 Oct 2013)
Log Message:
-----------
minor tweek to cam_assimilate to be consistent with
how we generally form instance numbers.  also add tim's
script which must be called when we stop CESM but aren't
doing a cam assimilation.

Modified Paths:
--------------
    DART/trunk/models/CESM/shell_scripts/cam_assimilate.csh

Added Paths:
-----------
    DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh

-------------- next part --------------
Modified: DART/trunk/models/CESM/shell_scripts/cam_assimilate.csh
===================================================================
--- DART/trunk/models/CESM/shell_scripts/cam_assimilate.csh	2013-10-09 20:42:12 UTC (rev 6502)
+++ DART/trunk/models/CESM/shell_scripts/cam_assimilate.csh	2013-10-09 21:08:31 UTC (rev 6503)
@@ -512,11 +512,11 @@
 set member = 1
 while ( ${member} <= ${ensemble_size} )
 
-   set n4 = `printf %04d $member`
+   set inst_string = `printf _%04d $member`
 
-   set ATM_INITIAL_FILENAME = `printf ${MYCASE}.cam_%04d.i.${ATM_DATE_EXT}.nc  ${member}`
+   set ATM_INITIAL_FILENAME = ${MYCASE}.cam${inst_string}.i.${ATM_DATE_EXT}.nc
 
-   ${LINK} ${ATM_INITIAL_FILENAME} cam_initial_${n4}.nc || exit -9
+   ${LINK} ${ATM_INITIAL_FILENAME} cam_initial${inst_string}.nc || exit -9
 
    @ member++
 

Added: DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh
===================================================================
--- DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh	                        (rev 0)
+++ DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh	2013-10-09 21:08:31 UTC (rev 6503)
@@ -0,0 +1,71 @@
+#!/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$
+
+# 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_NO_ASSIMILATE"
+
+# 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   LINK = '/usr/local/bin/ln -fvs'
+   breaksw
+
+   default:
+      set   LINK = 'ln -fvs'
+   breaksw
+endsw
+
+set ensemble_size = ${NINST_ATM}
+
+#-------------------------------------------------------------------------
+# Determine time of model state ... from file name of first member
+# of the form "./${CASE}.cam_${ensemble_member}.i.2000-01-06-00000.nc"
+#-------------------------------------------------------------------------
+
+set FILE = `head -n 1 rpointer.atm_0001`
+set FILE = $FILE:t
+set FILE = $FILE:r
+set MYCASE = `echo $FILE | sed -e "s#\..*##"`
+set ATM_DATE_EXT = `echo $FILE:e`
+
+#=========================================================================
+# As implemented, the input filenames are static in the CESM namelists.
+# We must link the new uniquely-named files to static names so that when
+# the short-term archiver 'restores' the CESM files, the links are right.
+#=========================================================================
+
+cd ${RUNDIR}
+
+set member = 1
+while ( ${member} <= ${ensemble_size} )
+
+   set inst_string = `printf _%04d $member`
+
+   set ATM_INITIAL_FILENAME = ${MYCASE}.cam${inst_string}.i.${ATM_DATE_EXT}.nc
+
+   ${LINK} ${ATM_INITIAL_FILENAME} cam_initial${inst_string}.nc || exit -9
+
+   @ member++
+
+end
+
+echo "`date` -- END CAM_NO_ASSIMILATE"
+
+exit 0
+
+# <next few lines under version control, do not edit>
+# $URL$
+# $Revision$
+# $Date$
+


Property changes on: DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author HeadURL Id
Added: svn:eol-style
   + native


More information about the Dart-dev mailing list