[Dart-dev] [6525] DART/trunk/models: These scripts are now identical.

nancy at ucar.edu nancy at ucar.edu
Thu Oct 17 10:37:13 MDT 2013


Revision: 6525
Author:   thoar
Date:     2013-10-17 10:37:13 -0600 (Thu, 17 Oct 2013)
Log Message:
-----------
These scripts are now identical. Removed an unneeded 'cd rundir' from
the cam_no_assimilate.csh ... it already checked for the existence of an
rpointer file - which only exist in the rundir.

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

Added Paths:
-----------
    DART/trunk/models/cam/shell_scripts/no_assimilate.csh

-------------- next part --------------
Modified: DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh
===================================================================
--- DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh	2013-10-17 16:31:35 UTC (rev 6524)
+++ DART/trunk/models/CESM/shell_scripts/cam_no_assimilate.csh	2013-10-17 16:37:13 UTC (rev 6525)
@@ -44,8 +44,6 @@
 # the short-term archiver 'restores' the CESM files, the links are right.
 #=========================================================================
 
-cd ${RUNDIR}
-
 set member = 1
 while ( ${member} <= ${ensemble_size} )
 

Added: DART/trunk/models/cam/shell_scripts/no_assimilate.csh
===================================================================
--- DART/trunk/models/cam/shell_scripts/no_assimilate.csh	                        (rev 0)
+++ DART/trunk/models/cam/shell_scripts/no_assimilate.csh	2013-10-17 16:37:13 UTC (rev 6525)
@@ -0,0 +1,68 @@
+#!/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 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.
+#=========================================================================
+
+set member = 1
+while ( ${member} <= ${ensemble_size} )
+
+   set inst_string = `printf _%04d $member`
+
+   set ATM_INITIAL_FILENAME = ${CASE}.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/cam/shell_scripts/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