[Dart-dev] DART/branches Revision: 12133
dart at ucar.edu
dart at ucar.edu
Mon Nov 20 16:30:35 MST 2017
thoar at ucar.edu
2017-11-20 16:30:35 -0700 (Mon, 20 Nov 2017)
457
Finally understand Fei's template file strategy.
_complete covers the complete timeframe of available DATM data.
_single should be for a SINGLE year of DATM forcing, and that year
is replaced by the CESM2_0_setup_ensemble script.
Various other small changes that need to be tested - as soon as
I can get a CESM-only case to run. The task layout being specified
seems to be the problem, and using the multi-driver is supposed to be
part of the solution.
Modified: DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config 2017-11-20 23:04:31 UTC (rev 12132)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config 2017-11-20 23:30:35 UTC (rev 12133)
@@ -20,11 +20,6 @@
#
# This script will build the DART executables if they are not found.
#
-# There are many CESM binary files in big-endian format, and DART reads
-# some of them, so you MUST compile DART accordingly e.g.,
-# ifort -convert big_endian
-# Contact dart at ucar.edu if you want to use another compiler.
-#
# ---------------------
# How to set up the script
# ---------------------
@@ -57,7 +52,24 @@
setenv CASE `./xmlquery CASE --value`
setenv num_instances `./xmlquery NINST_LND --value`
+#>@todo ... if num_instances = 1, the we MUST be pmo ...
+
# ==============================================================================
+# ==============================================================================
+
+# Now the script to be run is determined by
+# CESM's env_run.xml DATA_ASSIMILATION* variables.
+#
+# DATA_ASSIMILATION_CYCLES says how many cycles to run in each job before a RESUBMIT.
+# Set to 1 for the first cycle.
+# When the job (not each cycle) is finished the short_term archiver will run and,
+# if RESUBMIT > 0, resubmit a new case.run job.
+
+./xmlchange DATA_ASSIMILATION=TRUE
+./xmlchange DATA_ASSIMILATION_CYCLES=1
+./xmlchange DATA_ASSIMILATION_SCRIPT=${CASEROOT}/assimilate.csh
+
+# ==============================================================================
# Some
# ==============================================================================
@@ -208,6 +220,9 @@
g;num_output_obs_members ;s;= .*;= ${num_instances};
g;casename ;s;= .*;= "../${CASE}",;
g;hist_nhtfrq ;s;= .*;= -HISTORY_OUTPUT_INTERVAL,;
+g;clm_restart_filename ;s;= .*;= 'clm_restart.nc';
+g;clm_history_filename ;s;= .*;= 'clm_history.nc';
+g;clm_vector_history_filename ;s;= .*;= 'clm_vector_history.nc';
wq
ex_end
@@ -256,10 +271,13 @@
1) The default behavior is to _not_ invoke DART and simply run CESM.
We recommend that you make sure this works before proceeding.
+ ./xmlchange DATA_ASSIMILATION=FALSE
2) When you want to run DART,
+ cd ${CASEROOT}
./xmlchange DATA_ASSIMILATION_SCRIPT=${CASEROOT}/assimilate.csh
- from ${CASEROOT}
+ -or-
+ ./xmlchange DATA_ASSIMILATION_SCRIPT=${CASEROOT}/perfect_model.csh
3) Modify what you need to in the DART namelist file, i.e. ${CASEROOT}/input.nml
Modified: DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_setup_ensemble
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_setup_ensemble 2017-11-20 23:04:31 UTC (rev 12132)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_setup_ensemble 2017-11-20 23:30:35 UTC (rev 12133)
@@ -23,7 +23,7 @@
# num_instances The number of ensemble members.
# ==============================================================================
-setenv CASE clm5_startup_ch
+setenv CASE clm5_startup
setenv resolution f09_g16
setenv compset I2000Clm50BgcCrop
setenv compset 2000_DATM%GSWP3v1_CLM50%BGC-CROP_SICE_SOCN_MOSART_SGLC_SWAV
@@ -136,7 +136,8 @@
--case ${caseroot} \
--project ${project} \
--run-unsupported \
- --ninst ${num_instances} || exit 2
+ --ninst ${num_instances} \
+ --multi-driver || exit 2
# ==============================================================================
# Preserve a copy of this script as it was run.
@@ -179,7 +180,6 @@
setenv TEST_MPI `./xmlquery MPI_RUN_COMMAND --value`
setenv CLM_CONFIG_OPTS `./xmlquery CLM_CONFIG_OPTS --value`
setenv COMPSET `./xmlquery COMPSET --value`
-setenv MAX_TASKS_PER_NODE `./xmlquery MAX_TASKS_PER_NODE --value`
setenv COMP_ATM `./xmlquery COMP_ATM --value`
setenv CIMEROOT `./xmlquery CIMEROOT --value`
setenv CASEROOT `./xmlquery CASEROOT --value`
@@ -254,14 +254,10 @@
./xmlchange PIO_TYPENAME=netcdf
More information about the Dart-dev
mailing list