#!/usr/bin/env bash
#PBS -N nwm_forcing_mpe_%CYC%_%STIME%
#PBS -A "NWM-DEV"
#PBS -j oe
#PBS -q dev
#PBS -l place=vscatter,select=1:ncpus=1:mpiprocs=1:mem=20gb
#PBS -l walltime=00:20:00
#PBS -l debug=true

export NODES=1
export NCORES=1
export NPROCS=$((NODES*NCORES))
export OMP_PLACES=cores
export OMP_NUM_THREADS=1
export model=nwm

source $ECFTESTDIR/model_envir.h

module load PrgEnv-intel/${PrgEnv_intel_ver}
module load craype/${craype_ver}
module load intel/${intel_ver}
#module load cray-mpich/${cray_mpich_ver}
module load cray-pals/${pals_ver}
module load python/${python_ver}
module load netcdf/${netcdf_ver}
module load wgrib2/${grib2_ver}
module list

#Unlimit the stack size
ulimit -s unlimited

# EXPORT list here
export cyc=%CYC%

# CALL executable job script here
${HOMEnwm}/jobs/JNWM_FORCING_MPE


#%manual
######################################################################
#
#  PURPOSE:
#
######################################################################

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

# include manual page below
#%end