#!/usr/bin/env bash
#PBS -N nwm_analysis_assim_long_no_da_%CYC%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -l place=vscatter:exclhost,select=1:ncpus=128:mpiprocs=128
#PBS -l walltime=00:10:00
#PBS -l debug=true
export NODES=1
export NCORES=128
export NPROCS=$((NODES*NCORES))
export model=nwm
%include
%include
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 netcdf/${netcdf_ver}
module load hdf5/${hdf5_ver}
module load iobuf/${iobuf_ver}
module load cfp/${cfp_ver}
module load python/${python_ver}
module list
export I_MPI_DEVICE=rdssm
export I_MPI_PIN_PROCESSOR_LIST=15
export SAVE_ALL_TASKS=yes
export OMP_NUM_THREADS=1
export IOBUF_PARAMS='*.LAKEOUT_DOMAIN1:size=64M:count=2:prefetch=1,*:size=32M:count=4:vbuffer_count=4096:prefetch=1'
export OMP_PLACES=cores
#Unlimit the stack size
ulimit -s unlimited
# EXPORT list here
export cyc=%CYC%
export CASETYPE=analysis_assim_long_no_da
# CALL executable job script here
${HOMEnwm}/jobs/JNWM_MODEL_NO_DA
%include
%manual
######################################################################
#
# PURPOSE:
#
######################################################################
######################################################################
# Job specific troubleshooting instructions:
# see generic troubleshoot manual page
#
######################################################################
# include manual page below
%end