[Dart-dev] DART/branches Revision: 12397

dart at ucar.edu dart at ucar.edu
Mon Feb 5 15:45:11 MST 2018


thoar at ucar.edu
2018-02-05 15:45:10 -0700 (Mon, 05 Feb 2018)
201
CESM2_0_setup_spinup   takes a single instance and creates an ensemble by forcing wth different DATMs.
CESM2_0_setup_pmo      takes one of those instances (run_type = hybrid) and uses it as the truth.



Modified: DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_pmo
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_pmo	2018-02-05 21:53:58 UTC (rev 12396)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_pmo	2018-02-05 22:45:10 UTC (rev 12397)
@@ -9,7 +9,13 @@
 #-----------------------------------------------------------------------
 # Purpose, describe things here, etc.
 #-----------------------------------------------------------------------
-
+#
+# CESM2_0_setup_pmo takes a single instance from a spun-up ensemble and
+#                   advances CLM in 24hour segments. If that works,
+#                   the setup can be modified to run perfect_model_obs to
+#                   harvest synthetic observations from the single instance,
+#                   which is now the true state of the system.
+#
 # ==============================================================================
 # Options defining the experiment:
 #
@@ -51,9 +57,11 @@
 #              CESM executables will be built.  Medium amount of space
 #              needed, generally on a scratch partition.
 # archdir      Defines the location of the CESM short-term archive directories.
-#              Requires large amounts of disk space, may be on a scratch partition if
-#              the long-term archiver is invoked to move these files to permanent storage.
-#              Files will remain here until the long-term archiver moves it to permanent storage.
+#              Files remain here until the long-term archiver moves them to 
+#              permanent storage.  Requires large amounts of disk space. Should
+#              not be on a scratch partition unless the long-term archiver is 
+#              invoked to move these files to permanent storage.
+#
 # dartroot     Location of the root of _your_ DART installation
 # baseobsdir   Part of the directory name containing the obs_seq.out files to be used in the
 #              assimilation. The year, month, and filename will be provided in assimilate.csh.
@@ -110,7 +118,7 @@
 setenv stagedir /glade/p/image/RDA_strawman/CESM_ensembles/CLM/CLM4/I_2000_CN_f09_f09/rest/${reftimestamp}
 
 setenv SingleInstanceRefcase 0
-setenv TRUTHinstance 23
+setenv TRUTHinstance 3
 
 # start_year     generally this is the same as the reference case date, but it can
 # start_month    be different if you want to start this run as if it was a different time.
@@ -188,7 +196,7 @@
 # since the build process removes all files in the caseroot dir before
 # populating it.  try to prevent shooting yourself in the foot.
 
-if ( $caseroot == `dirname $0` ) then
+if ( ${caseroot} == `pwd` ) then
    echo "ERROR: the setup script should not be located in the caseroot"
    echo "directory, because all files in the caseroot dir will be removed"
    echo "before creating the new case.  move the script to a safer place."
@@ -246,7 +254,7 @@
 # Get a bunch of environment variables.
 # If any of these are changed by xmlchange calls in this program,
 # then they must be explicty changed with setenv calls too.
-#
+
 setenv TEST_MPI              `./xmlquery MPI_RUN_COMMAND       --value`
 setenv CLM_CONFIG_OPTS       `./xmlquery CLM_CONFIG_OPTS       --value`
 setenv COMPSET               `./xmlquery COMPSET               --value`
@@ -410,6 +418,7 @@
 
    # following the CESM strategy for 'inst_string'
    set inst_string = ''
+   set true_string = `printf _%04d $TRUTHinstance`
 
    # ===========================================================================
    set fname = "user_nl_datm${inst_string}"
@@ -445,7 +454,7 @@
 
    foreach FNAME ( user_datm.streams.txt*${inst_string} )
       echo "modifying $FNAME"
-      sed s/NINST/${inst_string}/g $FNAME >! temp
+      sed s/_NINST/${true_string}/g $FNAME >! temp
       sed s/RUNYEAR/${stream_year_first}/g temp >! $FNAME
    end
    ${REMOVE} temp

Modified: DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_spinup
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_spinup	2018-02-05 21:53:58 UTC (rev 12396)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/cesm2_0/CESM2_0_setup_spinup	2018-02-05 22:45:10 UTC (rev 12397)
@@ -10,9 +10,9 @@
 # Purpose, describe things here, etc.
 #-----------------------------------------------------------------------
 #
-# CESM2_0_setup_startup   simply spins up an ensemble in 1year chunks.
-#                         writes out restart files once per month. 
-#                         all ensembles start from the same (default) input file 
+# CESM2_0_setup_spinup   Simply spins up an ensemble in 1year chunks.
+#                        Writes out restart files once per month. 
+#                        All ensembles start from the same (default) input file.
 #
 # ==============================================================================
 # Options defining the experiment:
@@ -33,25 +33,32 @@
 setenv cesmtag        clm_dev_branch
 setenv num_instances  4
 
+setenv RUN_TYPE       startup


More information about the Dart-dev mailing list