Skip to content

Commit

Permalink
Update ufs-weather-model (#2663)
Browse files Browse the repository at this point in the history
Updates ufs-weather-model, this updates RDHPCS to the newer spack-stack
allowing some temporary fixes to be reverted.
* removes upp submodule
* uses upp from the ufs-weather-model
* restores the build and link that were hacked during the Hera Rocky 8
transition to allow for UPP submodule
* Removes forecast directories in clean-up

Resolves #2617 
Resolves #2437

---------

Co-authored-by: Rahul Mahajan <[email protected]>
  • Loading branch information
2 people authored and RussTreadon-NOAA committed Jun 24, 2024
1 parent 15eaf35 commit c98474a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
[submodule "sorc/gsi_monitor.fd"]
path = sorc/gsi_monitor.fd
url = https://github.com/NOAA-EMC/GSI-Monitor.git
[submodule "sorc/upp.fd"]
path = sorc/upp.fd
url = https://github.com/NOAA-EMC/UPP.git
ignore = dirty
[submodule "sorc/jcb"]
path = sorc/jcb
url = https://github.com/noaa-emc/jcb
Expand Down
7 changes: 7 additions & 0 deletions scripts/exglobal_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

source "${USHgfs}/preamble.sh"

# Remove DATAoutput from the forecast model run
# TODO: Handle this better
DATAfcst="${DATAROOT}/${RUN}fcst.${PDY:-}${cyc}"
if [[ -d "${DATAfcst}" ]]; then rm -rf "${DATAfcst}"; fi
#DATAefcs="${DATAROOT}/${RUN}efcs???${PDY:-}${cyc}"
rm -rf "${DATAROOT}/${RUN}efcs"*"${PDY:-}${cyc}"

###############################################################
# Clean up previous cycles; various depths
# PRIOR CYCLE: Leave the prior cycle alone
Expand Down
2 changes: 1 addition & 1 deletion sorc/build_upp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ if [[ ! -d "../exec" ]]; then
mkdir -p ../exec
fi

cd upp.fd/tests
cd ufs_model.fd/FV3/upp/tests
# shellcheck disable=SC2086
BUILD_JOBS=${BUILD_JOBS:-8} ./compile_upp.sh ${_opts}
9 changes: 4 additions & 5 deletions sorc/link_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,10 @@ fi
#--link source code directories
#------------------------------
cd "${HOMEgfs}/sorc" || exit 8
# TODO: Commenting out until UPP is up-to-date with Rocky-8.
#if [[ -d ufs_model.fd ]]; then
# [[ -d upp.fd ]] && rm -rf upp.fd
# ${LINK} ufs_model.fd/FV3/upp upp.fd
#fi
if [[ -d ufs_model.fd ]]; then
[[ -d upp.fd ]] && rm -rf upp.fd
${LINK} ufs_model.fd/FV3/upp upp.fd
fi

if [[ -d gsi_enkf.fd ]]; then
[[ -d gsi.fd ]] && rm -rf gsi.fd
Expand Down
1 change: 0 additions & 1 deletion sorc/upp.fd
Submodule upp.fd deleted from 83e83a
11 changes: 5 additions & 6 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,11 @@ FV3_out() {
echo "SUB ${FUNCNAME[0]}: copying output data for FV3"

# Copy configuration files
if [[ "${RUN}" == "gfs" || "${RUN}" == "gefs" ]]; then
${NCP} "${DATA}/input.nml" "${COMOUT_CONF}/ufs.input.nml"
${NCP} "${DATA}/model_configure" "${COMOUT_CONF}/ufs.model_configure"
${NCP} "${DATA}/ufs.configure" "${COMOUT_CONF}/ufs.ufs.configure"
${NCP} "${DATA}/diag_table" "${COMOUT_CONF}/ufs.diag_table"
fi
${NCP} "${DATA}/input.nml" "${COMOUT_CONF}/ufs.input.nml"
${NCP} "${DATA}/model_configure" "${COMOUT_CONF}/ufs.model_configure"
${NCP} "${DATA}/ufs.configure" "${COMOUT_CONF}/ufs.ufs.configure"
${NCP} "${DATA}/diag_table" "${COMOUT_CONF}/ufs.diag_table"


# Create an array of fv3 restart files
local fv3_restart_files tile_files fv3_restart_file restart_file
Expand Down

0 comments on commit c98474a

Please sign in to comment.