#!/usr/bin/env bash
#PBS -N nwm_forcing_long_range_mem%MEM%_%CYC%_%STIME%
#PBS -A "NWM-DEV"
#PBS -j oe
#PBS -q dev
#PBS -l place=vscatter:exclhost,select=1:ncpus=128:mpiprocs=64
#PBS -l walltime=00:45:00
#PBS -l debug=true

export NODES=1
export NCORES=64
export NPROCS=$((NODES*NCORES))

export model=nwm
export OMP_PLACES=cores
export OMP_NUM_THREADS=1

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-pals/${pals_ver}
module load cfp/${cfp_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%

export mem=%MEM%
export member=`echo $mem|cut -c2-2`

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


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

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

# include manual page below
#%end