#PBS -N spcsref_pgrb212_gempak_f00_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -l walltime=01:00:00
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l select=1:ncpus=1:mem=5GB
#PBS -l debug=true

export model=spcsref
%include <head.h>
%include <envir-p1.h>

set -x

export cyc=%CYC%
export gempak_time="00"
 
module load PrgEnv-intel/$PrgEnv_intel_ver
module load craype/$craype_ver
module load intel/$intel_ver
module load gempak/$gempak_ver

$HOMEspcsref/jobs/JSPCSREF_PGRB212_GEMPAK

if [ $? -ne 0 ]; then
  ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
  ecflow_client --abort
  exit
fi


%include <tail.h>
%manual
######################################################################
#
#  PURPOSE:  To execute the job that runs the SPCSREF GEMPAK processing.
#
######################################################################

######################################################################
# Job specific troubleshooting instructions:
#  see generic troubleshoot manual page
#
######################################################################

# include manual page below
%end