#!/usr/bin/env bash
#PBS -N nwm_rap_grib2netcdf_%CYC%_%TIME%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -l place=vscatter,select=1:ncpus=1:mpiprocs=1:mem=1gb
#PBS -l walltime=00:15:00
#PBS -l debug=true
export NODES=1
#-----process count per node
export NCORES=1
#-----total process count
export NPROCS=$((NODES*NCORES))
export model=nwm
export OMP_PLACES=cores
%include
%include
#Unlimit the stack size
ulimit -s unlimited
module load PrgEnv-intel/${PrgEnv_intel_ver}
module load craype/${craype_ver}
module load intel/${intel_ver}
module load cray-pals/${pals_ver}
module load python/${python_ver}
module load netcdf/${netcdf_ver}
module load wgrib2/${grib2_ver}
module list
# EXPORT list here
export cyc=%CYC%
export PRODUCTTYPE=RAP_Conus_GRIB2
# CALL executable job script here
${HOMEnwm}/jobs/JNWM_GRIB2NETCDF
%include
%manual
######################################################################
#
# PURPOSE:
#
######################################################################
######################################################################
# Job specific troubleshooting instructions:
# see generic troubleshoot manual page
#
######################################################################
# include manual page below
%end