Skip to content

Commit

Permalink
Use UPP modules for postanl
Browse files Browse the repository at this point in the history
PR NOAA-EMC#2042 added a hack to checkout a UPP version that works on Orion,
but `upp.x` now fails due to a missing library. This changes the
postanl job to load the UPP modules instead of the normal runtime
ones.

Resolves NOAA-EMC#2041
  • Loading branch information
WalterKolczynski-NOAA committed Nov 9, 2023
1 parent 13d06de commit 2b48871
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions jobs/rocoto/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ source "${HOMEgfs}/ush/preamble.sh"
###############################################################

# Source FV3GFS workflow modules
. ${HOMEgfs}/ush/load_fv3gfs_modules.sh
status=$?
[[ ${status} -ne 0 ]] && exit ${status}
# . ${HOMEgfs}/ush/load_fv3gfs_modules.sh
# status=$?
# [[ ${status} -ne 0 ]] && exit ${status}
# Temporarily load modules from UPP
source "${HOMEgfs}/ush/detect_machine.sh"
source "${HOMEgfs}/ush/module-setup.sh"
module use "${HOMEgfs}/sorc/ufs_model.fd/FV3/upp/modulefiles"
module load orion
if [[ "${MACHINE_ID}" = "wcoss2" ]]; then
module load prod_util
module load cray-pals
module load cfp
else
module load prod-util
export UTILROOT=${prod_util_ROOT}
fi
module load grib-util
module load wgrib2
export WGRIB2=wgrib2
# End hack

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

0 comments on commit 2b48871

Please sign in to comment.