[Dart-dev] [6106] DART/branches/development/models/CESM/shell_scripts: forgot to remove unneeded quotes, and to restart a failed
nancy at ucar.edu
nancy at ucar.edu
Fri May 3 15:15:48 MDT 2013
Revision: 6106
Author: nancy
Date: 2013-05-03 15:15:48 -0600 (Fri, 03 May 2013)
Log Message:
-----------
forgot to remove unneeded quotes, and to restart a failed
run we need to relink the cam_initial names as well as copy
over all the restart files.
Modified Paths:
--------------
DART/branches/development/models/CESM/shell_scripts/CESM_setup_hybrid_from_prev_run.csh
DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh
DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh
DART/branches/development/models/CESM/shell_scripts/pop_assimilate.csh
-------------- next part --------------
Modified: DART/branches/development/models/CESM/shell_scripts/CESM_setup_hybrid_from_prev_run.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/CESM_setup_hybrid_from_prev_run.csh 2013-05-03 21:00:17 UTC (rev 6105)
+++ DART/branches/development/models/CESM/shell_scripts/CESM_setup_hybrid_from_prev_run.csh 2013-05-03 21:15:48 UTC (rev 6106)
@@ -740,6 +740,16 @@
${COPY} \${lastarchdir}/* .
+let inst=1
+while [[ \$inst -le $num_instances ]]
+do
+ # instance string includes the leading underscore
+ inst_string=\`printf _%04d \$inst\`
+
+ ${LINK} ${refcase}.cam\${inst_string}.i.\${lastarchdir}.nc cam_initial\${inst_string}.nc
+
+ let inst=inst+1
+done
exit 0
EndOfText
Modified: DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh 2013-05-03 21:00:17 UTC (rev 6105)
+++ DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh 2013-05-03 21:15:48 UTC (rev 6106)
@@ -83,7 +83,7 @@
# If not, return before assimilating.
#-------------------------------------------------------------------------
-if ( "$ATM_HOUR" != "0" && "$ATM_HOUR" != "6" && "$ATM_HOUR" != "12" && "$ATM_HOUR" != "18") then
+if ( $ATM_HOUR != 0 && $ATM_HOUR != 6 && $ATM_HOUR != 12 && $ATM_HOUR != 18) then
echo "Hour is not 0,6,12 or 18Z so we are skipping the atmosphere assimilation"
echo "`date` -- END CAM_ASSIMILATE"
exit 0
Modified: DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh 2013-05-03 21:00:17 UTC (rev 6105)
+++ DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh 2013-05-03 21:15:48 UTC (rev 6106)
@@ -83,7 +83,7 @@
# If not, return before assimilating.
#-------------------------------------------------------------------------
-if ( "$LND_HOUR" != "0" ) then
+if ( $LND_HOUR != 0 ) then
echo "Hour is not 0Z so we are skipping the land assimilation"
echo "`date` -- END LND_ASSIMILATE"
exit 0
Modified: DART/branches/development/models/CESM/shell_scripts/pop_assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/pop_assimilate.csh 2013-05-03 21:00:17 UTC (rev 6105)
+++ DART/branches/development/models/CESM/shell_scripts/pop_assimilate.csh 2013-05-03 21:15:48 UTC (rev 6106)
@@ -85,8 +85,8 @@
# restart configuration for pop (data_assim or rest).
#-------------------------------------------------------------------------
-${REMOVE} user_nl_pop2_*.back
-if ( "$OCN_HOUR" != "0" ) then
+${REMOVE} user_nl_pop2_*back
+if ( $OCN_HOUR != 0 ) then
echo "Hour is not 0Z so we are skipping the ocean assimilation"
foreach nml ( ${CASEROOT}/user_nl_pop2_* )
${MOVE} $nml ${nml}.back
More information about the Dart-dev
mailing list