#PBS -N hwrf%STORMNUM%_bdy_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=01:00: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

export INIT_MODEL=GFS INIT_FHR=0 INIT_PARTS=BDY
${HOMEhwrf}/jobs/JHWRF_INIT

%include <tail.h>

%manual

TASK bdy

NOTE: This task is critical; it is impossible to start the forecast
even in a degraded mode if this task fails.

PURPOSE: Reads GFS analysis and forecast six-hourly files, and
produces boundary conditions for the HWRF forecast job.

Meters:

  input - displays the last GFS hour seen.  If it stays on one hour
    for more than a few minutes, then the job is having trouble finding
    GFS data, or it has hung.

TROUBLESHOOTING:

PROBLEM: Trouble finding GFS data?

  See the input meter note above.  

%end