diff --git a/rocoto/bin/hera/prdgen_hr.sh b/rocoto/bin/hera/prdgen_hr.sh index 4851dfd0f..e1290d006 100755 --- a/rocoto/bin/hera/prdgen_hr.sh +++ b/rocoto/bin/hera/prdgen_hr.sh @@ -1,23 +1,46 @@ -#!/bin/ksh +#! /usr/bin/env bash set -x -export IOBUF_PARAMS=*:size=64M:count=4:verbose - ulimit -s unlimited ulimit -a -export MP_SHARED_MEMORY=yes -export MEMORY_AFFINITY=core:4 +# module_ver.h +. ${GEFS_ROCOTO}/dev/versions/run_hera.ver + +# Load modules +module reset + +module use -a /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack + +module load hpc/${hpc_ver} +module load hpc-intel/${intel_ver} +module load hpc-impi/${impi_ver} +module load grib_util/${grib_util_ver} +module load prod_util/${prod_util_ver} +module load netcdf/${netcdf_ver} + +module load prod_envir/${prod_envir_ver} + +module load wgrib2/$wgrib2_ver + +module list + +# For Development +. ${GEFS_ROCOTO}/bin/hera/common.sh -#export NODES=$SLURM_JOB_NUM_NODES -#export total_tasks=$SLURM_NTASKS -#export OMP_NUM_THREADS=4 -#export taskspernode=$SLURM_CPUS_ON_NODE +# Export List +#export MP_SHARED_MEMORY=yes +#export MEMORY_AFFINITY=core:4 +export OMP_NUM_THREADS=1 +shopt -s extglob +ver=${gefs_ver%${gefs_ver##v+([0-9]).+([0-9])}} +shopt -u extglob -export DO_LOW_RES= +export ROTDIR=${COMROOT}/gefs/${ver} +export ROTDIR_GFS=${HOMEdata}/gfs/${gfs_ver} # export for development runs only begin export RERUN=NO # CALL executable job script here -. $SOURCEDIR/jobs/JGEFS_ATMOS_PRDGEN +. ${SOURCEDIR}/jobs/JGEFS_ATMOS_PRDGEN diff --git a/rocoto/bin/wcoss2/prdgen_hr.sh b/rocoto/bin/wcoss2/prdgen_hr.sh index 3ba57c53c..49eb0eabd 100755 --- a/rocoto/bin/wcoss2/prdgen_hr.sh +++ b/rocoto/bin/wcoss2/prdgen_hr.sh @@ -1,4 +1,4 @@ -#!/bin/ksh -l +#! /usr/bin/env bash set -x ulimit -s unlimited