Skip to content

Commit

Permalink
Modify bin file of prdgen job
Browse files Browse the repository at this point in the history
	modified:   rocoto/bin/hera/prdgen_hr.sh
	modified:   rocoto/bin/wcoss2/prdgen_hr.sh

Refs: NOAA-EMC#95
  • Loading branch information
XianwuXue-NOAA committed May 3, 2023
1 parent c3360fb commit 7427fe0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
45 changes: 34 additions & 11 deletions rocoto/bin/hera/prdgen_hr.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion rocoto/bin/wcoss2/prdgen_hr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/ksh -l
#! /usr/bin/env bash

set -x
ulimit -s unlimited
Expand Down

0 comments on commit 7427fe0

Please sign in to comment.