Skip to content

Update Orographic Gravity Drag scheme option 1#2285

Open
Songyou184 wants to merge 4 commits intowrf-model:developfrom
Songyou184:GWDO2026
Open

Update Orographic Gravity Drag scheme option 1#2285
Songyou184 wants to merge 4 commits intowrf-model:developfrom
Songyou184:GWDO2026

Conversation

@Songyou184
Copy link

@Songyou184 Songyou184 commented Feb 19, 2026

TYPE: enhancement

KEYWORDS: orographic drag

SOURCE: Songyou Hong (NCAR)

DESCRIPTION OF CHANGES:
YSU GWDO was revised following the study of Hong et al. (2025, WAF), now is called as Korean Integrated Model (KIM) GWDO. KIM GWDO requires additional maximum orography file, "ELVMAX" in WPS. Non-hydrostatic effect of Xu et al. (2024, JAS) was also added (gwd_if_nonhyd=.true., default). Factor for the effective grid spacing was added (gwd_dx_factor=2.0, default).

LIST OF MODIFIED FILES:
m Registry/Registry.EM_COMMON
m arch/Externals.cfg
m dyn_em/module_first_rk_step_part1.F
m phys/module_bl_gwdo.F
m phys/module_pbl_driver.F

TESTS CONDUCTED:

  1. Tested in MPAS.
  2. The Jenkins tests are all passing.

RELEASE NOTE: Include a stand-alone message suitable for the inclusion in the minor and annual releases. A publication citation is appropriate.

@weiwangncar
Copy link
Collaborator

@Songyou184 @dudhia It doesn't seem that the GWDO and ShinHong PBL code are separated. Both PRs 2285 and 2286 contain changes for both options.

@Songyou184 Songyou184 requested a review from a team as a code owner February 24, 2026 20:12
@Songyou184
Copy link
Author

4D var part : module_first_rk_step_part1_ad.F, module_pbl_driver_ad.F are revised.

@weiwangncar
Copy link
Collaborator

The 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
Copy link
Collaborator

dudhia commented Mar 4, 2026

May need updating. Conflicts cannot be resolved via github.

dudhia
dudhia previously approved these changes Mar 4, 2026
Copy link
Collaborator

@dudhia dudhia left a comment

Choose a reason for hiding this comment

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

Updated code.

@weiwangncar
Copy link
Collaborator

@dudhia @Songyou184 Can you update the PR message?

@weiwangncar weiwangncar changed the title GWDO2026 : # 2 of GWDO and SHINHONG PBL PR Update Orographic gravity drag scheme option 1 Mar 5, 2026
@weiwangncar weiwangncar changed the title Update Orographic gravity drag scheme option 1 Update Orographic Gravity Drag scheme option 1 Mar 5, 2026
@dudhia
Copy link
Collaborator

dudhia commented Mar 6, 2026

@weiwangncar Check into this failure too.

@weiwangncar
Copy link
Collaborator

@dudhia @Songyou184 In this case, the compilation failed mainly due to code issues. The error is

module_bl_gwdo.f90:219:26:
  219 |                     ,omax=elvmax_hv                           &
      |                          1
Error: Keyword argument 'omax' at (1) is not in the procedure

It appears in making changes to bl_gwdo.F90 in MMM-physics, Songyou made two changes: the first PR made some changes, and the second one reversed part or all of the first changes, which made omax not being included in the bl_gwdo_run call.

@Songyou184
Copy link
Author

Songyou184 commented Mar 7, 2026 via email

@Songyou184
Copy link
Author

Songyou184 commented Mar 7, 2026 via email

@weiwangncar
Copy link
Collaborator

@Songyou184 @dudhia It needs to be committed to MMM-physics as current PR points to that repository.

@dudhia
Copy link
Collaborator

dudhia commented Mar 8, 2026

I will also mention again that develop points to an old tag of MMM-physics as we haven't been using submodules for it up till now. Someone needs to fix that.

@islas
Copy link
Collaborator

islas commented Mar 9, 2026

develop points to an old tag of MMM-physics as we haven't been using submodules for it up till now. Someone needs to fix that.

I don't follow. What is the problem with develop, should we be pointing to a newer tag? When PR #2282 went in, it put the submodule to point to the exact same tag that manage_externals was using

@dudhia
Copy link
Collaborator

dudhia commented Mar 9, 2026

MMM-physics was updated with some new modules in recent PRs that we need for V4.8.

@islas
Copy link
Collaborator

islas commented Mar 9, 2026

These PRs (#2284 #2285 #2286) update the submodule to point the new tag that incorporates those MMM-physics changes. Updating the submodule in develop independently outside of these PRs should not be done.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants