[Dart-dev] [6300] DART/trunk/models/CESM/shell_scripts/CESM1_1_1_initial.csh: fix the autogenerated scripts to include updating

nancy at ucar.edu nancy at ucar.edu
Thu Jul 11 09:42:38 MDT 2013


Revision: 6300
Author:   nancy
Date:     2013-07-11 09:42:37 -0600 (Thu, 11 Jul 2013)
Log Message:
-----------
fix the autogenerated scripts to include updating
the namelists for the proper ensemble size after
copying over to the cases dir.  also fix the dartroot
and project number, which i apparently committed without
fixing last time.  add a touch of the cam inflation cookie
to match tim's changes to the cam assimilate script to
handle the initial timestep when an inflation restart file
may not be present.

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

-------------- next part --------------
Modified: DART/trunk/models/CESM/shell_scripts/CESM1_1_1_initial.csh
===================================================================
--- DART/trunk/models/CESM/shell_scripts/CESM1_1_1_initial.csh	2013-07-11 15:31:15 UTC (rev 6299)
+++ DART/trunk/models/CESM/shell_scripts/CESM1_1_1_initial.csh	2013-07-11 15:42:37 UTC (rev 6300)
@@ -106,7 +106,7 @@
 setenv rundir       /glade/scratch/${USER}/${case}/run
 setenv archdir      /glade/scratch/${USER}/archive/${case}
 
-setenv DARTroot     /glade/p/work/nancy/subversion/newtrunk/
+setenv DARTroot     /glade/u/home/${USER}/DART
 
 set RTM_stagedir = /glade/scratch/thoar/DART_POP_RESTARTS/2004-01-01-00000
 set CLM_stagedir = /glade/scratch/thoar/DART_POP_RESTARTS/CLM_2004-01-01-00000/cesm_test
@@ -149,7 +149,7 @@
 # TJH: How many T62_gx1v6 CESM instances can fit on 1 node?
 # ==============================================================================
 
-setenv ACCOUNT      P86850054
+setenv ACCOUNT      P8685nnnn
 setenv timewall     0:50
 setenv queue        economy
 setenv ptile        15
@@ -804,6 +804,8 @@
    let inst=inst+1
 done
 
+date > ${rundir}/make_cam_inflation_cookie
+
 cd ${caseroot}
 
 # reset the env_run options to start a new run (or start over)
@@ -869,6 +871,10 @@
 
 #-----
 
+# ==============================================================================
+# Stage the DART executables in the CESM execution root directory: EXEROOT
+# ==============================================================================
+
 cat << EndOfText >! refresh_dart_files.sh
 #!/bin/sh
 
@@ -898,15 +904,15 @@
 ${COPY} ${DARTroot}/models/CESM/work/filter       ${exeroot}/filter_cesm
 ${COPY} ${DARTroot}/models/CESM/work/input.nml               input.nml
 
+if [[ -x update_namelists.sh ]]; then
+  ./update_namelists.sh
+fi
+
 exit 0
 
 EndOfText
 chmod 0775 refresh_dart_files.sh
 
-# ==============================================================================
-# Stage the DART executables in the CESM execution root directory: EXEROOT
-# ==============================================================================
-
 ./refresh_dart_files.sh
 
 
@@ -917,6 +923,14 @@
 # setup and before running.
 # ==============================================================================
 
+cat << EndOfText >! update_namelists.sh
+#!/bin/sh
+
+# this script makes certain namelist settings consistent with the number
+# of ensemble members built by the setup script.
+# this script was autogenerated by $0
+# using the variables set in that script
+
 # Ensure that the input.nml ensemble size matches the number of instances.
 # WARNING: the output files contain ALL ensemble members ==> BIG
 
@@ -949,6 +963,13 @@
 wq
 ex_end
 
+exit 0
+
+EndOfText
+chmod 0775 update_namelists.sh
+
+./update_namelists.sh
+
 #=========================================================================
 # Stage the files needed for SAMPLING ERROR CORRECTION
 #


More information about the Dart-dev mailing list