[Dart-dev] DART/branches Revision: 12156
dart at ucar.edu
dart at ucar.edu
Fri Dec 1 14:08:11 MST 2017
thoar at ucar.edu
2017-12-01 14:08:09 -0700 (Fri, 01 Dec 2017)
105
Adding a script to submit multiple dependent jobs.
Each phase can use a separate number of tasks/nodes.
Index: DART/branches/rma_trunk/models/ROMS/shell_scripts/advance_ensemble.csh.template
===================================================================
--- DART/branches/rma_trunk/models/ROMS/shell_scripts/advance_ensemble.csh.template 2017-12-01 17:46:06 UTC (rev 12155)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/advance_ensemble.csh.template 2017-12-01 21:08:09 UTC (rev 12156)
Property changes on: DART/branches/rma_trunk/models/ROMS/shell_scripts/advance_ensemble.csh.template
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Modified: DART/branches/rma_trunk/models/ROMS/shell_scripts/cycle.csh.template
===================================================================
--- DART/branches/rma_trunk/models/ROMS/shell_scripts/cycle.csh.template 2017-12-01 17:46:06 UTC (rev 12155)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/cycle.csh.template 2017-12-01 21:08:09 UTC (rev 12156)
@@ -161,14 +161,6 @@
# Create a ROMS POSTERIOR file that will be updated by DART and
# tag the output with the model time.
-# set OCEAN_TIME_STRING = `ncdump -v ocean_time ${DAI_FILE} | grep '^ ocean_time = '`
-# set OCEAN_TIME = `echo $OCEAN_TIME_STRING | sed -e "s#[=;a-z_ ]##g"`
-
-# set ROMS_PRIOR = `printf %s_%04d_%d.nc ${RST_ROOT} $instance $OCEAN_TIME`
-# set ROMS_POSTERIOR = `printf roms_posterior_%04d_%d.nc $instance $OCEAN_TIME`
-# set ROMS_OBSFILE = `printf %s_%04d_%d.nc ${OBS_ROOT} $instance $OCEAN_TIME`
-# set SAFETY = `printf roms_dai_original_%04d_%d.nc $instance $OCEAN_TIME`
-
set DSTART_STRING = `ncdump -v dstart ${DAI_FILE} | grep '^ dstart = '`
set DSTART = `echo $DSTART_STRING | sed -e "s#[=;a-z_ ]##g"`
@@ -385,13 +377,11 @@
# a (single) ROMS input file is required to satisfy 'static_init_model()'.
# Any one will do.
-#ln -sf instance_0001/roms_posterior_????_${OCEAN_TIME}.nc MyDAINAME
ln -sf instance_0001/roms_posterior_????_${DSTART}.nc MyDAINAME
# 1) Collect all the ROMS_OBSFILEs into a list of input files
# and then convert them to a single DART observation sequence file.
-#ls -1 instance_*/${OBS_ROOT}*_${OCEAN_TIME}.nc >! precomputed_files.txt
ls -1 instance_*/${OBS_ROOT}*_${DSTART}.nc >! precomputed_files.txt
./convert_roms_obs || exit 2
@@ -401,7 +391,6 @@
# (make sure all instances of ROMS advanced successfully)
# DART (filter) will modify these files in-place.
-#ls -1 instance_*/roms_posterior_????_${OCEAN_TIME}.nc >! restart_files.txt
ls -1 instance_*/roms_posterior_????_${DSTART}.nc >! restart_files.txt
${LAUNCHCMD} ./filter || exit 3
@@ -419,7 +408,6 @@
if ( -e $FILE ) then
set FEXT = $FILE:e
set FBASE = $FILE:r
-# \mv -v $FILE ${FBASE}.${OCEAN_TIME}.${FEXT}
\mv -v $FILE ${FBASE}.${DSTART}.${FEXT}
else
echo "$FILE does not exist, no need to take action."
@@ -429,7 +417,6 @@
# Tag the observation file with the valid time of the model state.
-#\mv -v obs_seq.final obs_seq.final.${OCEAN_TIME}
\mv -v obs_seq.final obs_seq.final.${DSTART}
#==============================================================================
Property changes on: DART/branches/rma_trunk/models/ROMS/shell_scripts/cycle.csh.template
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Modified: DART/branches/rma_trunk/models/ROMS/shell_scripts/run_filter.csh.template
===================================================================
--- DART/branches/rma_trunk/models/ROMS/shell_scripts/run_filter.csh.template 2017-12-01 17:46:06 UTC (rev 12155)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/run_filter.csh.template 2017-12-01 21:08:09 UTC (rev 12156)
@@ -285,10 +285,8 @@
# a (single) ROMS input file is required to satisfy 'static_init_model()'.
# Any one will do.
-#ln -sf instance_0001/roms_posterior_????_${OCEAN_TIME}.nc MyDAINAME
ln -sf instance_0001/roms_posterior_????_${DSTART}.nc MyDAINAME
-#ls -1 instance_*/${OBS_ROOT}*_${OCEAN_TIME}.nc >! precomputed_files.txt
ls -1 instance_*/${OBS_ROOT}*_${DSTART}.nc >! precomputed_files.txt
./convert_roms_obs || exit 2
@@ -301,7 +299,6 @@
# (make sure all instances of ROMS advanced successfully)
# DART (filter) will modify these files in-place.
-#ls -1 instance_*/roms_posterior_????_${OCEAN_TIME}.nc >! restart_files.txt
ls -1 instance_*/roms_posterior_????_${DSTART}.nc >! restart_files.txt
${LAUNCHCMD} ./filter || exit 3
@@ -319,7 +316,6 @@
if ( -e $FILE ) then
More information about the Dart-dev
mailing list