#PBS -N spcsref_gempak_postmgr_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=02:30:00
#PBS -l select=1:ncpus=1:mem=1GB
#PBS -l debug=true
export model=spcsref
%include
%include
set -x
export cyc=%CYC%
#The following is hrly from 00->39 and 3-hrly 42->87
# equivalent to export gempak_jobs=$(seq -w 00 39; seq -w 42 3 87)
export gempak_jobs="00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87"
$HOMEspcsref/jobs/JSPCSREF_GEMPAK_PMGR
if [ $? -ne 0 ]; then
ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
ecflow_client --abort
exit
fi
%include
%manual
######################################################################
#
# PURPOSE: To execute the job that monitors the SPCSREF forecast pgrb200
# and releases the gempak jobs upon the pgrb200 completion.
#
######################################################################
######################################################################
# Job specific troubleshooting instructions:
# see generic troubleshoot manual page
#
######################################################################
# include manual page below
%end