#PBS -N hwrf%STORMNUM%_wave_post_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=00:35:00
#PBS -l select=1:ncpus=24:mpiprocs=24
#PBS -l debug=true

export NODES=1
export TOTAL_TASKS=24

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

export cyc="%CYC%"
export storm_num="%STORMNUM%"

# versions file for hwrf sets $model_ver and $code_ver

module load envvar/${envvar_ver}
module load PrgEnv-intel/${PrgEnv_intel_ver}
module load craype/${craype_ver}
module load intel/${intel_ver}
module load cray-pals/${cray_pals_ver}
module load libjpeg/${libjpeg_ver}
module load grib_util/${grib_util_ver}
module load wgrib2/${wgrib2_ver}
module load bufr/${bufr_ver}
module load hdf5/${hdf5_ver}
module load netcdf/${netcdf_ver}
module load pnetcdf/${pnetcdf_ver}
module load udunits/${udunits_ver}
module load nco/${nco_ver}
module load python/${python_ver}
module load cfp/${cfp_ver}
module list

${HOMEhwrf}/jobs/JHWRF_WAVE_POST

%include <tail.h>

%manual

TASK wave_post

PURPOSE: Runs post-processing programs on the wave component of the
forecast model, delivering results to COM.  This job only runs if the
wave model is enabled, and has completed successfully.

%end