[Dart-dev] DART/branches Revision: 11611

dart at ucar.edu dart at ucar.edu
Fri May 5 17:10:56 MDT 2017


thoar at ucar.edu
2017-05-05 17:10:55 -0600 (Fri, 05 May 2017)
291
Intended Usage:
1) configure and run stage_experiment.csh
2) cd to the experiment directory and confirm the setup is OK
3) sbatch advance_ensemble.csh     (and take note of the jobID)
4) sbatch --dependency=afterok:<jobID> run_filter.csh
5) check that all is well, and execute 3 & 4 again 




Modified: 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-05-05 22:11:34 UTC (rev 11610)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/advance_ensemble.csh.template	2017-05-05 23:10:55 UTC (rev 11611)
@@ -13,8 +13,12 @@
 #SBATCH --array=1-Myens_size
 #SBATCH --ntasks=16 
 #SBATCH --time=10:00
+#SBATCH --exclude=node04
+#SBATCH --job-name=roms_filter
+#SBATCH --output=roms_filter-%A-%a.out
+#SBATCH --error=roms_filter-%A-%a.err
+#
 #SXXXXX --dependency=afterok:FILTERJOBID
-#
 #==========================================================================
 #
 # Things to note: many strings are intended to be replaced when this
@@ -81,7 +85,12 @@
 # NOTE ... bc can handle the 'long' integers that happen when the
 # reference time is 1900-01-01, the shell divide cannot.
 
-set ROMS_INI = `printf %s_%04d.nc MyINIBASE $instance`
+if ( -e ../restart_files.txt ) then
+   set FULLFILE = `head -n $instance ../restart_files.txt| tail -n 1`
+   set ROMS_INI = $FULLFILE:t
+else
+   set ROMS_INI = `printf %s_%04d.nc MyINIBASE $instance`
+endif
 
 set OCEAN_TIME = `ncdump -v ocean_time ${ROMS_INI} | grep "ocean_time =" | tail -1`
 set TIME_SEC = `echo $OCEAN_TIME | grep -oE '[[:digit:]]+'`

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-05-05 22:11:34 UTC (rev 11610)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/run_filter.csh.template	2017-05-05 23:10:55 UTC (rev 11611)
@@ -30,30 +30,15 @@
 #BSUB -N -u ${USER}@ucar.edu
 #
 #===============================================================================
-# This block of directives constitutes the preamble for the PBS queuing system.
-# Turns out SLURM (in particular 'sbatch') recognizes PBS directives, so we
-# don't need two sets of directives.
-# the normal way to submit with pbs:    qsub   run_filter.csh
+# This block of directives constitutes the preamble for the SLURM queuing system.
 # the normal way to submit with slurm:  sbatch run_filter.csh
 #
-# an explanation of the most common directives follows:
-# -N     Job name
-# -r n   Declare job non-rerunable
-# -e <arg>  filename for standard error
-# -o <arg>  filename for standard out
-# -q <arg>   Queue name (small, medium, long, verylong)
-# -l nodes=xx:ppn=2   requests BOTH processors on the node. On both bangkok
-#                     and calgary, there is no way to 'share' the processors
-#                     on the node with another job, so you might as well use
-#                     them both. (ppn == Processors Per Node)
-#
-#PBS -N filter
-#PBS -e filter.err
-#PBS -o filter.log
-#PBS -l nodes=1:ppn=16
-#PBS -r n
-#SBATCH --time=01:00:00
+#SBATCH --job-name=filter
+#SBATCH --output=filter-%A.log
 #SBATCH --error=filter-%A.err
+#SBATCH --ntasks=16
+#SBATCH --time=00:30:00
+#SBATCH --error=filter-%A.err
 #SBATCH --output=filter-%A.log
 #SXXXXX --dependency=afterok:ADVANCEJOBID
 #

Modified: DART/branches/rma_trunk/models/ROMS/shell_scripts/stage_experiment.csh
===================================================================
--- DART/branches/rma_trunk/models/ROMS/shell_scripts/stage_experiment.csh	2017-05-05 22:11:34 UTC (rev 11610)
+++ DART/branches/rma_trunk/models/ROMS/shell_scripts/stage_experiment.csh	2017-05-05 23:10:55 UTC (rev 11611)
@@ -23,12 +23,12 @@
 # |-- varinfo.dat
 # |-- s4dvar.in.template
 # |-- ocean.in.template
-# |-- wc13_obs.nc
+# |-- wc12_obs.nc
 # |-- Data
 # |   |-- adsen.cdl
 # |   |-- <snip> whatever your configuration requires <snip>
-# |   |-- wc13_grd.nc
-# |   |-- wc13_ini.nc
+# |   |-- wc12_grd.nc
+# |   |-- wc12_ini.nc
 # |-- instance_0001
 # |   |-- ocean.in
 # |   `-- roms_input.nc
@@ -71,7 +71,7 @@
    echo "ERROR: ${EXPERIMENTDIR} already exists."
    echo "Intentionally leaving it alone."
    echo "Must provide a new directory name for the experiement."
-#  exit 1
+   exit 1


More information about the Dart-dev mailing list