Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ufs-weather-model #2663

Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -362,11 +362,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
15 changes: 9 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 Expand Up @@ -438,6 +437,10 @@ MOM6_postdet() {

# Daily output
if (( fhr > 0 & fhr % 24 == 0 )); then

# For daily output, the valid date in the file is based on the beginning of avg. period
vdate=$(date --utc -d "${vdate:0:8} ${vdate:8:2} - 24 hours" +%Y%m%d%H)

source_file="ocn_daily_${vdate:0:4}_${vdate:4:2}_${vdate:6:2}.nc"
dest_file="${RUN}.ocean.t${cyc}z.daily.f${fhr3}.nc"
${NLN} "${COMOUT_OCEAN_HISTORY}/${dest_file}" "${DATA}/MOM6_OUTPUT/${source_file}"
Expand Down
Loading