Skip to content

Commit

Permalink
Reinstated hacks for WCOSS2 in efcs, fcst, and post jobs. NOAA-EMC#1868
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Nov 30, 2023
1 parent bb2fc24 commit 87fd614
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
8 changes: 7 additions & 1 deletion jobs/rocoto/efcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
# TODO clean this up once ncdiag/1.1.2 is installed on WCOSS2
source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" == "wcoss2" ]]; then
. ${HOMEgfs}/ush/load_ufswm_modules.sh
else
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
fi
status=$?
[[ ${status} -ne 0 ]] && exit ${status}

Expand Down
8 changes: 7 additions & 1 deletion jobs/rocoto/fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
# TODO clean this up once ncdiag/1.1.2 is installed on WCOSS2
source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" == "wcoss2" ]]; then
. ${HOMEgfs}/ush/load_ufswm_modules.sh
else
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
fi
status=$?
[[ ${status} -ne 0 ]] && exit ${status}

Expand Down
24 changes: 20 additions & 4 deletions jobs/rocoto/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@ source "${HOMEgfs}/ush/preamble.sh"
## FHRLST : forecast hourlist to be post-process (e.g. anl, f000, f000_f001_f002, ...)
###############################################################

# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
# TODO clean this up once ncdiag/1.1.2 is installed on WCOSS2
source "${HOMEgfs}/ush/detect_machine.sh"
if [[ "${MACHINE_ID}" = "wcoss2" ]]; then
# Temporarily load modules from UPP
source "${HOMEgfs}/ush/module-setup.sh"
module use "${HOMEgfs}/sorc/ufs_model.fd/FV3/upp/modulefiles"
module load "${MACHINE_ID}"
module load prod_util
module load cray-pals
module load cfp
module load libjpeg
module load grib_util
module load wgrib2
export WGRIB2=wgrib2
# End hack
else
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
fi

export job="post"
export jobid="${job}.$$"
Expand Down

0 comments on commit 87fd614

Please sign in to comment.