[Dart-dev] [6549] DART/trunk/models/cam/shell_scripts: Put the xmlchanges to turn off the RTM in a more logical spot.

nancy at ucar.edu nancy at ucar.edu
Thu Oct 24 17:15:47 MDT 2013


Revision: 6549
Author:   thoar
Date:     2013-10-24 17:15:47 -0600 (Thu, 24 Oct 2013)
Log Message:
-----------
Put the xmlchanges to turn off the RTM in a more logical spot.
Fixed an error in the stage_cesm_files script that put an extra
lines in the ocean pointer files. In actuality, the ocean pointer
files created by CESM are just REALLY LONG, so it looked like there
were 4 lines when in fact there were only two.
 

Modified Paths:
--------------
    DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_hybrid
    DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_pmo

-------------- next part --------------
Modified: DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_hybrid
===================================================================
--- DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_hybrid	2013-10-24 22:09:02 UTC (rev 6548)
+++ DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_hybrid	2013-10-24 23:15:47 UTC (rev 6549)
@@ -16,8 +16,8 @@
 #
 # DOCN: We are using a single data ocean.
 #
-# Because the atmosphere assimilations typically occur every 6 hours, 
-# the methodology here reflects that. All of CESM stops every 6 hours 
+# Because the atmosphere assimilations typically occur every 6 hours,
+# the methodology here reflects that. All of CESM stops every 6 hours
 # so that a CAM output file would be available for assimilation.
 #
 # This script results in a viable setup for a CESM multi-instance experiment. You
@@ -27,13 +27,13 @@
 # capability to re-stage files in your RUN directory
 #
 # CESM/DART requires some modifications to the CESM source code EVEN IF YOU ARE NOT
-# assimilating. The modifications for CAM require a modification to the 
-# CESM ${CASE}.run script. The modifications will invoke a DART script that will 
-# either assimilate or 'do nothing'. It is strongly recommended that you configure 
+# assimilating. The modifications for CAM require a modification to the
+# CESM ${CASE}.run script. The modifications will invoke a DART script that will
+# either assimilate or 'do nothing'. It is strongly recommended that you configure
 # the ${CASE}.run script to 'do nothing' initially. This is the default behavior.
 #
 # CASEROOT/CESM_DART_config will augment the CESM case with the required setup
-# and configuration to perform a DART assimilation and modify the ${CASE}.run script 
+# and configuration to perform a DART assimilation and modify the ${CASE}.run script
 # as mentioned previously - after it makes a backup copy.
 #
 # This script relies heavily on the information in:
@@ -58,7 +58,7 @@
 #    2) a run directory, where each forecast (and assimilation) will take place,
 #    3) a bld directory for the executables.
 #
-#    This script also executes ${CASEROOT}/CESM_DART_config to modify 
+#    This script also executes ${CASEROOT}/CESM_DART_config to modify
 #    the $CASEROOT/${CASE}.run script so that the SourceMods for CAM
 #    are effective. CESM_DART_config will also augment the case with all
 #    the pieces necessary to run DART when the time comes.
@@ -421,6 +421,13 @@
 
 ./xmlchange PIO_TYPENAME=pnetcdf
 
+# The river transport model ON is useful only when using an active ocean or
+# land surface diagnostics. Setting ROF_GRID, RTM_MODE to 'null' turns off the RTM.
+# If you turn it ON, you will have to stage initial files etc.
+
+./xmlchange ROF_GRID='null'
+./xmlchange RTM_MODE='NULL'
+
 # COUPLING discussion. F compsets are 'tight' coupling.
 # Only change the ATM_NCPL ... everything is based on this one value,
 # including CAM physics and dynamics timesteps.
@@ -444,13 +451,6 @@
    ./xmlchange DOUT_L_HTAR=FALSE
 endif
 
-# The river transport model ON is useful only when using an active ocean or
-# land surface diagnostics. Setting ROF_GRID, RTM_MODE to 'null' turns off the RTM.
-# If you turn it ON, you will have to stage initial files etc.
-
-./xmlchange ROF_GRID='null'
-./xmlchange RTM_MODE='NULL'
-
 # level of debug output, 0=minimum, 1=normal, 2=more, 3=too much, valid values: 0,1,2,3 (integer)
 
 ./xmlchange DEBUG=FALSE
@@ -560,7 +560,7 @@
 # CLM builds its own 'finidat' value from the REFCASE variables but in CESM1_1_1
 #     it does not use the instance string. There is a patch for clm.buildnml.csh
 #
-# When CONTINUE_RUN = TRUE, CICE and CLM read from pointer files. 
+# When CONTINUE_RUN = TRUE, CICE and CLM read from pointer files.
 #
 # All of these must later on be staged with these same filenames.
 # OR - all these namelists can be changed to match whatever has been staged.
@@ -739,9 +739,7 @@
 
    # relink the pointer file for the data ocean
    echo "${case}.docn.r.\${restart_time}.nc"    >! rpointer.ocn
-   echo ""                                      >> rpointer.ocn
    echo "${case}.docn.rs1.\${restart_time}.bin" >> rpointer.ocn
-   echo ""                                      >> rpointer.ocn
 
    exit 0
 endif
@@ -770,8 +768,8 @@
    echo ''
    echo "Staging restarts for instance \$inst of $num_instances"
 
-   ${LINK} \${filedir}/${run_refcase}.clm2\${inst_string}.r.${run_refdate}-${run_reftod}.nc  . 
-   ${LINK} \${filedir}/${run_refcase}.cice\${inst_string}.r.${run_refdate}-${run_reftod}.nc  . 
+   ${LINK} \${filedir}/${run_refcase}.clm2\${inst_string}.r.${run_refdate}-${run_reftod}.nc  .
+   ${LINK} \${filedir}/${run_refcase}.cice\${inst_string}.r.${run_refdate}-${run_reftod}.nc  .
    ${LINK} \${filedir}/${run_refcase}.cam\${inst_string}.i.${run_refdate}-${run_reftod}.nc   cam_initial\${inst_string}.nc
 
    @ inst ++

Modified: DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_pmo
===================================================================
--- DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_pmo	2013-10-24 22:09:02 UTC (rev 6548)
+++ DART/trunk/models/cam/shell_scripts/CESM1_1_1_setup_pmo	2013-10-24 23:15:47 UTC (rev 6549)
@@ -414,6 +414,13 @@
 
 ./xmlchange PIO_TYPENAME=pnetcdf
 
+# The river transport model ON is useful only when using an active ocean or
+# land surface diagnostics. Setting ROF_GRID, RTM_MODE to 'null' turns off the RTM.
+# If you turn it ON, you will have to stage initial files etc.
+
+./xmlchange ROF_GRID='null'
+./xmlchange RTM_MODE='NULL'
+
 # COUPLING discussion. F compsets are 'tight' coupling.
 # Only change the ATM_NCPL ... everything is based on this one value,
 # including CAM physics and dynamics timesteps.
@@ -437,13 +444,6 @@
    ./xmlchange DOUT_L_HTAR=FALSE
 endif
 
-# The river transport model ON is useful only when using an active ocean or
-# land surface diagnostics. Setting ROF_GRID, RTM_MODE to 'null' turns off the RTM.
-# If you turn it ON, you will have to stage initial files etc.
-
-./xmlchange ROF_GRID='null'
-./xmlchange RTM_MODE='NULL'
-
 # level of debug output, 0=minimum, 1=normal, 2=more, 3=too much, valid values: 0,1,2,3 (integer)
 
 ./xmlchange DEBUG=FALSE
@@ -553,7 +553,7 @@
 # CLM builds its own 'finidat' value from the REFCASE variables but in CESM1_1_1
 #     it does not use the instance string. There is a patch for clm.buildnml.csh
 #
-# When CONTINUE_RUN = TRUE, CICE and CLM read from pointer files. 
+# When CONTINUE_RUN = TRUE, CICE and CLM read from pointer files.
 #
 # All of these must later on be staged with these same filenames.
 # OR - all these namelists can be changed to match whatever has been staged.
@@ -732,9 +732,7 @@
 
    # relink the pointer file for the data ocean
    echo "${case}.docn.r.\${restart_time}.nc"    >! rpointer.ocn
-   echo ""                                      >> rpointer.ocn
    echo "${case}.docn.rs1.\${restart_time}.bin" >> rpointer.ocn
-   echo ""                                      >> rpointer.ocn
 
    exit 0
 endif


More information about the Dart-dev mailing list