Skip to content

update to MYNN-EDMFv6.1.1 - #2426

Open
joeolson42 wants to merge 11 commits into
wrf-model:developfrom
joeolson42:mynnedmf_20261017
Open

joeolson42 wants to merge 11 commits into
wrf-model:developfrom
joeolson42:mynnedmf_20261017

Conversation

@joeolson42

@joeolson42 joeolson42 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Update to the unified (WRF/MPAS/CCPP) MYNN-EDMFv6.1.2 driver + scheme.

TYPE: bug fixes, enhancement, and new feature

KEYWORDS: MYNN-EDMF, unified, diagnostic-driver

SOURCE: Joseph Olson (NOAA-GSL), Xia Sun (NOAA-GSL), and Mark Richardson (Aeolis Research)

DESCRIPTION OF CHANGES:
Problems:

  1. Had different versions of the MYNN-EDMF in WRF, MPAS, and CCPP, making code management a hassle.
  2. Important diagnostics were housed in various places in different models. Need to carry consistent output capabilities across models.
  3. revision to effective static stability option (bl_mynn_ess= 1) to improve diffusion in subgrid clouds and still maintain stratocumulus.
  4. revision to the superadiabatic check for mf scheme to improve activation over the ocean and make it more general for different vertical grid configurations.
  5. Many minor/moderate-impact bugs were found (some by Mark Richardson and Michael Graf)

Solutions:

  1. Unified WRF-MPAS-CCPP driver and scheme. Code snapshot saved in a frozen tagged release branch (release-v6.1.1) to connect to all model frameworks.
  2. New MYNN-EDMF diagnostics module with namelist bl_mynn_diags2d
    -- 0:off (no addition output; default)
    -- 1:real-time diagnostic outputs: LWP, IWP, SWP, CLDCEIL
    -- 2: research-mode outputs: LWP, IWP, SWP, CLDCEIL, WSPD10, WSPD80, WSPD160, MAXCLDFRA, MAXCLDFRA_BL
    --Namelist option change: bl_mynn_edmf_output changed to bl_mynn_diags3d to
  3. Miscellaneous bug fixes:
    --added transport of ice to fix a ice-to-liquid conversion problem associated with plumes penetrating ice clouds. small impact, at least in the case studies and latitudes that were tested. (from Mark Richardson)
    -- temperature tendency conversion (thl to th) issue fixed. Small impact in small time step (dt <= 20 s) configurations, but more noticeable at longer timesteps, especially in the tropics. (from Mark Richardson)
    -- an important bug fix to the limiter of water vapor fluxes that limits negative qv from Michael Graf. This greatly improves the excessive fog issue.
    --a few other small-impact bug fixes found by Claude

LIST OF MODIFIED FILES: list of changed files (use git diff --name-status develop to get formatted list)
M Registry/Registry.EM_COMMON
M dyn_em/module_first_rk_step_part1.F
M main/depend.common
M phys/MYNN-EDMF
M phys/Makefile
M phys/module_pbl_driver.F
M share/module_check_a_mundo.F

TESTS CONDUCTED:

  1. Do mods fix problem? Yes. Testing single case studies and over a 1-week retrospective period, which showed small improvements to RH and winds in the troposphere and helped to reduce a high bias in high thresholds of reflectivity and precipitation, especially over the SE U.S.
  2. Are the Jenkins tests all passing?

RELEASE NOTE: Updates include a fully unified driver that is connectable to WRF. MPAS, and CCPP, fully centralizing MYNN-EDMF development. A new diagnostics module was added to port useful diagnostics to all model frameworks. This is controlled by the bl_mynn_diags2d namelist variable. Several small-impact bug fixes were detected and fixed with use of Claude and Copilot.

@joeolson42
joeolson42 requested review from a team as code owners October 27, 2026 01:26
@joeolson42
joeolson42 marked this pull request as draft October 27, 2026 01:26
@weiwangncar

Copy link
Copy Markdown
Collaborator

@joeolson42 I see a compilation error in module_pbl_driver.F:

module_pbl_driver.f90:1700:37:

 1700 |                    &chem3d=chem,vd3d=vd,nchem=nchem,kdvel=kdvel,         &
      |                                     1
Error: Rank mismatch in argument 'vd3d' at (1) (rank-3 and rank-4)

@joeolson42

Copy link
Copy Markdown
Contributor Author

@joeolson42 I see a compilation error in module_pbl_driver.F:

module_pbl_driver.f90:1700:37:

 1700 |                    &chem3d=chem,vd3d=vd,nchem=nchem,kdvel=kdvel,         &
      |                                     1
Error: Rank mismatch in argument 'vd3d' at (1) (rank-3 and rank-4)

Thanks Wei. It appears that Ravan & Jordan's group define vd3d differently in our NOAA's MPAS (only 3D). I implemented a simple fix to only use k=1, so it now has a rank-3 after being passed into the MYNN-EDMF driver.

@joeolson42
joeolson42 marked this pull request as ready for review October 27, 2026 18:39
@weiwangncar

Copy link
Copy Markdown
Collaborator

@joeolson42 The same compile error from above showed up in this push...

@joeolson42

Copy link
Copy Markdown
Contributor Author

@joeolson42 The same compile error from above showed up in this push...

That's bazaar. The code in my working directory hasn't changed back to the pre-bugfix form and the code changes listed in this PR include the fix. I'll try a trivial clean-up code change in the pbl driver to trigger another test. We'll see if this is reproducible.

@weiwangncar

Copy link
Copy Markdown
Collaborator

@joeolson42 Sorry my bad. The error is actually this, and I'm not sure it makes sense either:

module_pbl_driver.f90:1700:67:

 1700 |                    &chem3d=chem,vd3d=vd(:,1,:,:),nchem=nchem,kdvel=kdvel,&
      |                                                                   1
Error: Keyword argument 'kdvel' at (1) is not in the procedure; did you mean 'ndvel'?

minor change to trigger a test.
@weiwangncar

Copy link
Copy Markdown
Collaborator

@joeolson42 Now the compilation error is

module_pbl_driver.f90:1701:57:

 1701 |                    &nchem=nchem,ndvel=ndvel,num_vert_mix=num_vert_mix,   &
      |                                                         1
Error: Keyword argument 'num_vert_mix' at (1) is not in the procedure

It looks like you don't have num_vert_mix in the argument list in the subroutine.

@joeolson42

Copy link
Copy Markdown
Contributor Author

Thanks Wei! Sorry about the series of WRF-CHEM-related bugs. You can tell that we don't have an automated CI test for WRF-CHEM yet..

@joeolson42

Copy link
Copy Markdown
Contributor Author

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

@weiwangncar weiwangncar removed the Retest label Nov 5, 2026
@joeolson42 joeolson42 changed the title update to MYNN-EDMFv6.1 update to MYNN-EDMFv6.1.1 Nov 6, 2026
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