#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/$::env(envvar_ver)
module load PrgEnv-intel/$::env(PrgEnv_intel_ver)
module load craype/$::env(craype_ver)
module load intel/$::env(intel_ver)
module load cray-pals/$::env(cray_pals_ver)
module load libpng/$::env(libpng_ver)
module load zlib/$::env(zlib_ver)
module load jasper/$::env(jasper_ver)
module load libjpeg/$::env(libjpeg_ver)
module load grib_util/$::env(grib_util_ver)
module load wgrib2/$::env(wgrib2_ver)
module load w3emc/$::env(w3emc_ver)
module load w3nco/$::env(w3nco_ver)
module load bufr/$::env(bufr_ver)
module load hdf5/$::env(hdf5_ver)
module load netcdf/$::env(netcdf_ver)
module load pnetcdf/$::env(pnetcdf_ver)
module load udunits/$::env(udunits_ver)
module load nco/$::env(nco_ver)
module load python/$::env(python_ver)
module load cfp/$::env(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