[Dart-dev] [6046] DART/branches/development/models/CESM/shell_scripts: These all have a unified look and feel and log their own timing information .
nancy at ucar.edu
nancy at ucar.edu
Mon Apr 8 11:22:24 MDT 2013
Revision: 6046
Author: thoar
Date: 2013-04-08 11:22:22 -0600 (Mon, 08 Apr 2013)
Log Message:
-----------
These all have a unified look and feel and log their own timing information.
Should be able to tell who's running when. All models 'clean out' their
assimilate_dir upon entry - so there may be some economization to be had later on.
Since we're only running with CAM right now, no big deal.
Modified Paths:
--------------
DART/branches/development/models/CESM/shell_scripts/assimilate.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/assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/assimilate.csh 2013-04-04 18:43:25 UTC (rev 6045)
+++ DART/branches/development/models/CESM/shell_scripts/assimilate.csh 2013-04-08 17:22:22 UTC (rev 6046)
@@ -18,5 +18,7 @@
#./pop_assimilate.csh
#./clm_assimilate.csh
+echo "`date` -- END CESM ASSIMILATE"
+
exit 0
Modified: DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh 2013-04-04 18:43:25 UTC (rev 6045)
+++ DART/branches/development/models/CESM/shell_scripts/cam_assimilate.csh 2013-04-08 17:22:22 UTC (rev 6046)
@@ -10,7 +10,7 @@
# changes to this script such that the same script can be used
# on multiple platforms. This will help us maintain the script.
-echo "`date` -- BEGIN ASSIMILATE"
+echo "`date` -- BEGIN CAM_ASSIMILATE"
switch ("`hostname`")
case be*:
@@ -59,7 +59,13 @@
# Create temporary working directory for the assimilation
set temp_dir = assimilate_dir
echo "temp_dir is $temp_dir"
-mkdir -p $temp_dir
+
+# Create a clean temporary directory and go there
+if ( -d $temp_dir ) then
+ ${REMOVE} $temp_dir/*
+else
+ mkdir -p $temp_dir
+endif
cd $temp_dir
#-------------------------------------------------------------------------
@@ -290,7 +296,7 @@
# advance_time_present = .false.
#=========================================================================
-echo "`date` -- BEGIN CAM TO DART"
+echo "`date` -- BEGIN CAM-TO-DART"
set member = 1
while ( ${member} <= ${ensemble_size} )
@@ -411,7 +417,7 @@
# and has the required input files remaining from 'Block 4'
#=========================================================================
-echo "`date` -- BEGIN DART TO CAM"
+echo "`date` -- BEGIN DART-TO-CAM"
set member = 1
while ( $member <= $ensemble_size )
@@ -436,7 +442,7 @@
exit -8
endif
-echo "`date` -- END DART TO CAM for all ${ensemble_size} members."
+echo "`date` -- END DART-TO-CAM for all ${ensemble_size} members."
#=========================================================================
# Block 7: The cam files have now been updated, move them into position.
@@ -457,12 +463,8 @@
set n4 = `printf %04d $member`
- set LND_RESTART_FILENAME = `printf ${MYCASE}.clm2_%04d.r.${ATM_DATE_EXT}.nc ${member}`
- set ICE_RESTART_FILENAME = `printf ${MYCASE}.cice_%04d.r.${ATM_DATE_EXT}.nc ${member}`
set ATM_INITIAL_FILENAME = `printf ${MYCASE}.cam_%04d.i.${ATM_DATE_EXT}.nc ${member}`
- ${LINK} ${LND_RESTART_FILENAME} clm_restart_${n4}.nc || exit -9
- ${LINK} ${ICE_RESTART_FILENAME} ice_restart_${n4}.nc || exit -9
${LINK} ${ATM_INITIAL_FILENAME} cam_initial_${n4}.nc || exit -9
@ member++
@@ -485,23 +487,17 @@
./xmlchange START_TOD=${SSSSS}
#-------------------------------------------------------------------------
+# Cleanup
# we (DART) do not need these files, and CESM does not need them either
# to continue a run. if we remove them here they do not get moved to
# the short-term archiver.
#-------------------------------------------------------------------------
-${REMOVE} ${RUNDIR}/*.rs.*
-${REMOVE} ${RUNDIR}/*.rh0.*
-${REMOVE} ${RUNDIR}/*.rs1.*
-${REMOVE} ${RUNDIR}/PET*ESMF_LogFile
+# ${REMOVE} ${RUNDIR}/*.rh0.*
+# ${REMOVE} ${RUNDIR}/*.rs1.*
-#-------------------------------------------------------------------------
-# Cleanup
-#-------------------------------------------------------------------------
+echo "`date` -- END CAM_ASSIMILATE"
-echo "finished assimilate script at "`date`
-echo "`date` -- END ASSIMILATE"
-
exit 0
# <next few lines under version control, do not edit>
Modified: DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh
===================================================================
--- DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh 2013-04-04 18:43:25 UTC (rev 6045)
+++ DART/branches/development/models/CESM/shell_scripts/clm_assimilate.csh 2013-04-08 17:22:22 UTC (rev 6046)
@@ -10,7 +10,7 @@
# changes to this script such that the same script can be used
# on multiple platforms. This will help us maintain the script.
-echo "`date` -- BEGIN ASSIMILATE"
+echo "`date` -- BEGIN CLM_ASSIMILATE"
switch ("`hostname`")
case be*:
@@ -302,7 +302,7 @@
# advance_time_present = .false.
#=========================================================================
-echo "`date` -- BEGIN CLM TO DART"
+echo "`date` -- BEGIN CLM-TO-DART"
set member = 1
while ( ${member} <= ${ensemble_size} )
@@ -431,7 +431,7 @@
# and has the required input files remaining from 'Block 4'
#=========================================================================
-echo "`date` -- BEGIN DART TO CLM"
+echo "`date` -- BEGIN DART-TO-CLM"
set member = 1
while ( $member <= $ensemble_size )
@@ -457,17 +457,16 @@
endif
echo "`date` -- END DART-TO-CLM for all ${ensemble_size} members."
-echo "`date` -- END ASSIMILATE"
#-------------------------------------------------------------------------
# Cleanup
#-------------------------------------------------------------------------
-#\rm -f ../$CASE.*.rh0.*
-#\rm -f ../$CASE.*.rs1.*
-#\rm -f ../PET*.ESMF_LogFile
+# ${REMOVE} ../$CASE.*.rh0.*
+# ${REMOVE} ../$CASE.*.rs1.*
+# ${REMOVE} ../PET*.ESMF_LogFile
-ls -lrt
+echo "`date` -- END CLM_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-04-04 18:43:25 UTC (rev 6045)
+++ DART/branches/development/models/CESM/shell_scripts/pop_assimilate.csh 2013-04-08 17:22:22 UTC (rev 6046)
@@ -10,7 +10,7 @@
# changes to this script such that the same script can be used
# on multiple platforms. This will help us maintain the script.
-echo "`date` -- BEGIN ASSIMILATE"
+echo "`date` -- BEGIN POP_ASSIMILATE"
switch ("`hostname`")
case be*:
@@ -299,7 +299,7 @@
# advance_time_present = .false.
#=========================================================================
-echo "`date` -- BEGIN POP TO DART"
+echo "`date` -- BEGIN POP-TO-DART"
set member = 1
while ( ${member} <= ${ensemble_size} )
@@ -415,7 +415,7 @@
# and has the required input files remaining from 'Block 4'
#=========================================================================
-echo "`date` -- BEGIN DART TO POP"
+echo "`date` -- BEGIN DART-TO-POP"
set member = 1
while ( $member <= $ensemble_size )
@@ -440,14 +440,13 @@
exit -8
endif
-echo "`date` -- END DART TO POP for all ${ensemble_size} members."
-echo "`date` -- END ASSIMILATE"
+echo "`date` -- END DART-TO-POP for all ${ensemble_size} members."
#-------------------------------------------------------------------------
# Cleanup
#-------------------------------------------------------------------------
-ls -lrt
+echo "`date` -- END POP_ASSIMILATE"
exit 0
More information about the Dart-dev
mailing list