#PBS -N rtma_%FAMILY1%_gsianl_%CYC%%SUBCYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -A %PROJ%-%PROJENVIR%
#PBS -q %QUEUE%
#PBS -l walltime=00:25:00
#!#PBS -l select=1:ncpus=%NCPUS:16%:mpiprocs=%MPIPROCS:16%:mem=500GB
#!#PBS -l place=exclhost
#PBS -l select=1:ncpus=%NCPUS:16%:mpiprocs=%MPIPROCS:16%:mem=250GB
#PBS -l debug=true
model=rtma
%include
%include
export cyc=%CYC%
export subcyc=%SUBCYC%
export ntasks=%NCPUS:16%
export ppn=%PPN:16%
export threads=1
export OMP_PLACES=cores
export OMP_NUM_THREADS=$threads
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usrx/local/netcdf-3.6.3/lib
export LANG=en_US
export MP_EAGER_LIMIT=165536
export MP_COREFILE_FORMAT=lite
export MP_EUIDEVELOP=min
export MP_EUIDEVICE=sn_all
export MP_EUILIB=us
export MP_MPILIB=mpich2
export MP_LABELIO=yes
export MP_SINGLE_THREAD=yes
export MP_USE_BULK_XFER=yes
export MP_SHARED_MEMORY=yes
export MPICH_ALLTOALL_THROTTLE=0
export MP_COLLECTIVE_OFFLOAD=no
export KMP_STACKSIZE=1024m
export OMP_NUM_THREADS=1
export FI_OFI_RXM_SAR_LIMIT=3145728
if [ "%FAMILY1%" = "2p5" ]; then
export RUN=rtma2p5
elif [ "%FAMILY1%" = "rapid" ]; then
export RUN=rtma2p5_ru
else
export RUN=%FAMILY1%rtma
fi
module load PrgEnv-intel/${PrgEnv_intel_ver:?}
module load craype/${craype_ver:?}
module load intel/${intel_ver:?}
module load libjpeg/${libjpeg_ver:?}
module load cray-mpich/${cray_mpich_ver:?}
module load cray-pals/${cray_pals_ver:?}
module load hdf5/${hdf5_ver:?}
module load netcdf/${netcdf_ver:?}
module list
$HOMErtma/jobs/JRTMA_GSIANL
%include
%manual
###################################################################
#Run the Gridpoint Statistical Interpolation (GSI) packackage
#from EMC
###################################################################
%end