Skip to content

Commit

Permalink
Fix ocean restarts when cold starting with DOIAU=YES (NOAA-EMC#3278)
Browse files Browse the repository at this point in the history
Fixes logic in forecast_predet.sh so that ocean restarts are written
correctly when DOIAU="YES" for a cold-started experiment.

Note: there are currently no CI tests that cover this.

Resolves NOAA-EMC#3277
  • Loading branch information
jswhit2 authored Feb 4, 2025
1 parent c9011ab commit 8321fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ CMEPS_predet(){
CMEPS_RESTART_FH=("${FHMAX}")
fi
else
if [[ "${DOIAU:-NO}" == "YES" ]]; then
if [[ "${DOIAU:-NO}" == "YES" ]] && [[ "${warm_start}" == ".true." ]] ; then
local restart_interval_start=$(( cmeps_restart_interval + half_window ))
local restart_interval_end=$(( FHMAX + half_window ))
else
Expand Down

0 comments on commit 8321fcb

Please sign in to comment.