Skip to content

Warn when obs_nudge_opt = 1 and fdda_end is left at its default 0 - #2456

Open
mirfjc wants to merge 1 commit into
wrf-model:release-v4.8.2from
mirfjc:obs_nudge_fdda_end_warning
Open

mirfjc wants to merge 1 commit into
wrf-model:release-v4.8.2from
mirfjc:obs_nudge_fdda_end_warning

Conversation

@mirfjc

@mirfjc mirfjc commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

TYPE: bug fix

KEYWORDS: obs nudging, fdda_end, check_a_mundo, warning, namelist

SOURCE: Mark I. Richardson (Aeolis Research)

DESCRIPTION OF CHANGES:
Problem:
With obs_nudge_opt = 1 and fdda_end left at its Registry default of 0, the obs reader (share/wrf_fddaobs_in.F) and the obs-nudging driver call (dyn_em/module_first_rk_step_part2.F) run only while XTIME <= fdda_end, so observation nudging acts at the first time step and then stops. No message is printed; check_a_mundo treats only the obs_nudge_opt = 0 case. Details in #2455.

Solution:
In check_nml_consistency, next to the existing obs_nudge_opt = 0 rule, print a WARNING for a domain with obs_nudge_opt = 1 and fdda_end <= 0, naming the value and the unit (minutes from the simulation start). The run goes on unchanged: no namelist value is altered.

ISSUE:
Fixes #2455

LIST OF MODIFIED FILES:
M share/module_check_a_mundo.F

TESTS CONDUCTED:

  1. Yes. Built em_heldsuarez (configure option 15, -d, gfortran 16.2.0) from tag v4.8.0 (06d4240) plus this change (share/module_check_a_mundo.F and the obs-nudging files are the same on release-v4.8.1) and ran the three decks of Obs nudging with fdda_end at its default 0 reads obs and nudges at the first time step only, with no message #2455 on the same wrfinput_d01 and OBS_DOMAIN101 as the unpatched v4.8.0 build: obs_nudge_opt = 0 (control), obs_nudge_opt = 1 with fdda_end left at 0, and obs_nudge_opt = 1 with fdda_end = 1.0e9; 6 steps of 1800 s each.
    • The fdda_end-at-0 deck prints the WARNING once at startup:
      --- WARNING: obs_nudge_opt = 1 for domain      1 but fdda_end = 0 min: obs nudging stops after the first time step.
      ---          Set fdda_end past the time obs nudging should end, in minutes from the simulation start.
      
      The other two decks print no such line.
    • All three runs end with SUCCESS COMPLETE; obs reader calls 0 / 1 / 6 as before.
    • Every wrfout_d01 file is byte-identical to the one from the unpatched build (cmp): the change writes a message only.
  2. The regression (Jenkins) tests: not yet run.

RELEASE NOTE: A WARNING is printed when obs_nudge_opt = 1 and fdda_end is left at 0, since obs nudging then stops after the first time step.

Obs are read and the obs-nudging driver is called only while XTIME <= fdda_end,
so with the default fdda_end = 0 nudging acts on the first time step only. The
check prints a WARNING and changes nothing.
@mirfjc
mirfjc requested review from a team as code owners November 9, 2026 23:26
@weiwangncar

Copy link
Copy Markdown
Collaborator

The (delayed) regression test results:

Test Type              | Expected  | Received |  Failed
= = = = = = = = = = = = = = = = = = = = = = = =  = = = =
Number of Tests        : 23           24
Number of Builds       : 60           57
Number of Simulations  : 158           150        0
Number of Comparisons  : 95           86        0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None

dudhia
dudhia previously approved these changes Dec 4, 2026

@dudhia dudhia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding warning if user forgets to set fdda_end

@dudhia
dudhia changed the base branch from release-v4.8.1 to release-v4.8.2 December 4, 2026 16:25
@dudhia
dudhia dismissed their stale review December 4, 2026 16:25

The base branch was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants