Skip to content

Commit

Permalink
Turn C48mx500_3DVarAOWCDA back on (NOAA-EMC#2543)
Browse files Browse the repository at this point in the history
This PR turns the C48mx500_3DVarAOWCDA test back on. This required a few
bugfixes in GDAS app which have now been merged.

Resolves NOAA-EMC#2438
Resolves NOAA-EMC#2528

co-authors: @guillaumevernieres and @aerorahul who provided the bug
fixes.
  • Loading branch information
JessicaMeixner-NOAA committed Apr 27, 2024
1 parent 48489b4 commit 4b96c12
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
1 change: 0 additions & 1 deletion ci/cases/pr/C48mx500_3DVarAOWCDA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ arguments:
skip_ci_on_hosts:
- wcoss2
- orion
- hera
- hercules
3 changes: 2 additions & 1 deletion jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ if [[ "${DO_OCN}" == "YES" ]]; then
YMD="${PDY}" HH="${cyc}" declare_from_tmpl -rx COM_MED_RESTART COM_OCEAN_RESTART COM_OCEAN_INPUT \
COM_OCEAN_HISTORY COM_OCEAN_ANALYSIS
RUN="${rCDUMP}" YMD="${gPDY}" HH="${gcyc}" declare_from_tmpl -rx \
COM_OCEAN_RESTART_PREV:COM_OCEAN_RESTART_TMPL
COM_OCEAN_RESTART_PREV:COM_OCEAN_RESTART_TMPL \
COM_MED_RESTART_PREV:COM_MED_RESTART_TMPL
fi

if [[ "${DO_ICE}" == "YES" ]]; then
Expand Down
19 changes: 12 additions & 7 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,20 @@ FV3_postdet() {
fi
done

# Need a coupler.res when doing IAU
# Need a coupler.res that is consistent with the model start time
if [[ "${DOIAU}" == "YES" ]]; then
rm -f "${DATA}/INPUT/coupler.res"
cat >> "${DATA}/INPUT/coupler.res" << EOF
3 (Calendar: no_calendar=0, thirty_day_months=1, julian=2, gregorian=3, noleap=4)
${previous_cycle:0:4} ${previous_cycle:4:2} ${previous_cycle:6:2} ${previous_cycle:8:2} 0 0 Model start time: year, month, day, hour, minute, second
${current_cycle_begin:0:4} ${current_cycle_begin:4:2} ${current_cycle_begin:6:2} ${current_cycle_begin:8:2} 0 0 Current model time: year, month, day, hour, minute, second
EOF
local model_start_time="${previous_cycle}"
local model_current_time="${current_cycle_begin}"
else
local model_start_time="${current_cycle}"
local model_current_time="${current_cycle}"
fi
rm -f "${DATA}/INPUT/coupler.res"
cat >> "${DATA}/INPUT/coupler.res" << EOF
3 (Calendar: no_calendar=0, thirty_day_months=1, julian=2, gregorian=3, noleap=4)
${model_start_time:0:4} ${model_start_time:4:2} ${model_start_time:6:2} ${model_start_time:8:2} 0 0 Model start time: year, month, day, hour, minute, second
${model_current_time:0:4} ${model_current_time:4:2} ${model_current_time:6:2} ${model_current_time:8:2} 0 0 Current model time: year, month, day, hour, minute, second
EOF

# Create a array of increment files
local inc_files inc_file iaufhrs iaufhr
Expand Down
10 changes: 10 additions & 0 deletions ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,18 @@ FV3_predet(){
FHCYC=${FHCYC:-24}
restart_interval=${restart_interval:-${FHMAX}}
# restart_interval = 0 implies write restart at the END of the forecast i.e. at FHMAX
# Convert restart interval into an explicit list for FV3
if (( restart_interval == 0 )); then
restart_interval=${FHMAX}
FV3_RESTART_FH=("${restart_interval}")
else
# shellcheck disable=SC2312
mapfile -t FV3_RESTART_FH < <(seq "${restart_interval}" "${restart_interval}" "${FHMAX}")
# If the last forecast hour is not in the array, add it
local nrestarts=${#FV3_RESTART_FH[@]}
if (( FV3_RESTART_FH[nrestarts-1] != FHMAX )); then
FV3_RESTART_FH+=("${FHMAX}")
fi
fi

# Convert output settings into an explicit list for FV3
Expand Down
2 changes: 1 addition & 1 deletion ush/parsing_model_configure_FV3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local SHOUR=${model_start_date:8:2}
# FHMAX
local FHROT=${IAU_FHROT:-0}
local DT_ATMOS=${DELTIM}
local RESTART_INTERVAL="${restart_interval} -1"
local RESTART_INTERVAL="${FV3_RESTART_FH[*]}"
# QUILTING
local QUILTING_RESTART=".true."
local WRITE_GROUP=${WRITE_GROUP:-1}
Expand Down

0 comments on commit 4b96c12

Please sign in to comment.