[Dart-dev] DART/branches Revision: 12453

dart at ucar.edu dart at ucar.edu
Mon Mar 19 15:15:02 MDT 2018


thoar at ucar.edu
2018-03-19 15:15:02 -0600 (Mon, 19 Mar 2018)
188
Testing restarting from ensemble members in 
/glade/p/image/RDA_strawman/CESM_ensembles/CLM/CLM5BGC-Crop/1999-01-01-00000
and it advanced correctly.  This does not run pmo at this point.




Modified: DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CLM5_pmo
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CLM5_pmo	2018-03-19 20:22:04 UTC (rev 12452)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CLM5_pmo	2018-03-19 21:15:02 UTC (rev 12453)
@@ -166,7 +166,7 @@
          # NCAR "yellowstone"
          set   MOVE = '/bin/mv -v'
          set   COPY = '/bin/cp -v --preserve=timestamps'
-         set   LINK = '/bin/ln -vsf'
+         set   LINK = '/bin/ln -vs'
          set REMOVE = '/bin/rm -rf'
       breaksw
    default:
@@ -173,7 +173,7 @@
          # NERSC "hopper", TACC "stampede" ... many more
          set   MOVE = 'mv -v'
          set   COPY = 'cp -v --preserve=timestamps'
-         set   LINK = 'ln -vsf'
+         set   LINK = 'ln -vs'
          set REMOVE = 'rm -rf'
       breaksw
 endsw
@@ -236,8 +236,8 @@
 
 # Save a copy for debug purposes
 foreach FILE ( *xml )
-   if ( ! -e        ${FILE}.original ) then
-      ${COPY} $FILE ${FILE}.original
+   if ( ! -e          ${FILE}.original ) then
+      ${COPY} ${FILE} ${FILE}.original
    endif
 end
 
@@ -271,6 +271,9 @@
 setenv stop_option         nhours
 setenv stop_n              24
 
+@ clm_dtime = 1800
+@ h1nsteps = $stop_n * 3600 / $clm_dtime
+
 # stream_year_first  settings for the stream files for the Data Atmosphere (DATM).
 # stream_year_last
 # stream_year_align
@@ -318,14 +321,13 @@
 
 ./xmlchange START_TOD=$start_tod
 ./xmlchange RUN_REFTOD=$reftod
-./xmlchange GET_REFCASE=TRUE
+./xmlchange GET_REFCASE=FALSE
 
 # pnetcdf is default
 ./xmlchange PIO_TYPENAME=netcdf
 
-set TEST_MPI = `./xmlquery --value MPI_RUN_COMMAND'`
 if (${TEST_MPI} == 'UNSET') then
-   ./xmlchange MPI_RUN_COMMAND=mpiexec.mpt
+   ./xmlchange MPI_RUN_COMMAND=mpiexec_mpt
 endif
 
 # Task layout:
@@ -334,6 +336,7 @@
 # a whole number of nodes which is the recommended configuration.
 # This is a decent layout for a single instance, but should be explored.
 # Presently, all components run 'serially' - one after another.
+# CIME interprets a negative task count as representing the number of nodes.
 
 @ nthreads = 1
 @ nodes_per_instance = 4
@@ -456,6 +459,157 @@
    @ inst ++
 end
 
+./preview_namelists || exit 3
+
+# ==============================================================================
+# Stage the restarts now that the run directory exists
+# ==============================================================================
+
+echo "staging restarts"
+
+set init_time = ${reftimestamp}
+
+cat << EndOfText >! stage_cesm_files
+#!/bin/csh -f
+# This script can be used to help restart an experiment from any previous step.
+# The appropriate files are copied to the RUN directory.
+#
+# Before running this script:
+#  1) be sure CONTINUE_RUN is set correctly in the env_run.xml file in
+#     your CASEROOT directory.
+#     CONTINUE_RUN=FALSE => you are starting over at the initial time.
+#     CONTINUE_RUN=TRUE  => you are starting from a previous step but not
+#                           the very first one.
+#  2) be sure 'restart_time' is set to the day and time that you want to
+#     restart from if not the initial time.
+
+set restart_time = $init_time
+
+# get the settings for this case from the CESM environment
+cd ${caseroot}
+


More information about the Dart-dev mailing list