#BSUB -J %E%sref_enspost_g132_%CYC%_%CYC%
#BSUB -o /%COM%/output/%ENVIR%/today/sref_enspost_g132_%CYC%_%CYC%.o%J
#BSUB -e /%COM%/output/%ENVIR%/today/sref_enspost_g132_%CYC%_%CYC%.o%J
#BSUB -cwd /tmpnwprd
#BSUB -L /bin/sh
#BSUB -q %QUEUE%
#BSUB -R affinity[core:distribute=balance]
#BSUB -n 1
#BSUB -W 02:00
#BSUB -P %PROJ%
#BSUB -a poe
#BSUB -x    # not_shared
##BSUB -M 110

%include <head.h>
%include <envir-p2.h>


set -x


export cyc=%CYC%
export order=9

#  PURPOSE:      To execute the SREF Post Processing



# versions file for SREF model $sref_ver
VERSION_FILE=$NWROOT/versions/sref.ver
if [ -f $VERSION_FILE ]; then
  . $VERSION_FILE
else
  exit
fi

$NWROOT/sref.${sref_ver}/jobs/JSREF_ENSPOST132

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


%include <tail.h>
%manual
######################################################################
#
#
######################################################################

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

# include manual page below
%end