Replace GF with GFL submodule for WRF4.8 release#2269
Replace GF with GFL submodule for WRF4.8 release#2269weiwangncar merged 9 commits intowrf-model:developfrom
Conversation
|
@haiqinli Please fill out the PR following the template. The regression appears to fail on a chemistry case. I'm attaching the output here: |
Thanks @weiwangncar. The PR description has been updated. From the output_1.txt, it looks like the issue is from checking out the external mmm-physics component. 2401 Checking local status of required & optional components: mmm-physics, 2440 ERROR: In directory |
|
@haiqinli Have you tested this code with a wrf-chem run? |
|
@haiqinli Also, you listed 4 changed files, but git thinks you change 18 (see the line above the PR box). Use. the following command to list the changed files: |
Thanks @weiwangncar The list of changed files are updated. I will try to find a WRF-Chem case to test it, and will update when the test is done. |
|
@weiwangncar It is updated for WRF_Chem, and a WRF_Chem test run was successful. Thanks! |
|
The regression test results: |
|
@haiqinli Thanks, Haiqin! |
dudhia
left a comment
There was a problem hiding this comment.
WRF repo changes are mostly just safe name changes.
|
@haiqinli If you can add a few sentences to summarize the major updates in the new scheme, that would be greatly appreciated. Also please add a description of the PR in the RELEASE NOTE section - this section will be pulled out to make the release note, hence it is a good place to provide information. Thanks! |
Thanks Wei. The summary of this PR and updates have been added in the RELEASE NOTE section. |
|
@haiqinli There is at least one failed case for WRF-Chem after moving .F to .F90. Output is attached. Also there is no need for you to merge your branch to develop - git will do that automatically. Failed test below: |
Thanks for attaching the output_1.txt file. The issue may from line 379 of module_cu_gfl_deep.F90, the inout variables of edto,edtm are not explicitly declared. However, it looks like there are still failed RT cases. How can I check the RT log file? Thanks. |
|
@haiqinli It still fails one of the WRF-Chem test: test_001s, NML=5, which uses GFL scheme. The output is attached: |
|
@weiwangncar It looks like the regression test was successful on hash of d5fc9b8. May I revert the HEAD to that hash and then add the code updates? Thanks. |
@haiqinli It may be a reasonable idea. The last commit still fails the same WRF-Chem test. |
There was a problem hiding this comment.
@haiqinli Not sure why your branch shows the path like this. Looking at the standard 4.7.1 or develop branch code, the path is exactly like you've changed to.
There was a problem hiding this comment.
This develop-gfl branch was forked from the develop branch, and we changed it when compiled and tested for WRF-Chem.
There was a problem hiding this comment.
@weiwangncar I set up the WRF-Chem test run case to test the RT case of em_chem_5, and the test run was successful when turning off mid convection. I just updated the PR and hope this change can pass the RTs. Thanks!
|
@haiqinli It looks like the the reg tests have passed, though the output looks misleading (not sure why the one of the output for 'Number of Builds' has WRF-Chem as output): |
|
@weiwangncar Thanks, Wei! Glad to see the regression tests passed. I’ll make a small update to the convection and keep the *F format for WRF. |
|
@haiqinli Not sure what you've changed inside the GFL repository, but the last commit failed the same chem test as before with the error: Just wondering if you can run the same test case on your testing system? Can you just do the F to F90 change without changing the GFL repository? |
|
@weiwangncar Thanks Wei. The changes include some tuning for WRF model. I am not familiar with WRF-Chem. I will try to set up and debug with this failed chem case. Will update when I have progress. Thanks! |
|
@haiqinli It looks like the tests have passed. Thanks for the effort! Do you generally find mid-level convection improves forecasts? Do you plan to investigate why the chemistry case doesn't work with mid-level convection turned on? |
To resolve conflicts.
Adding missed 'fi'.
|
The regression test results: |
dudhia
left a comment
There was a problem hiding this comment.
Thanks for getting this to work.
@weiwangncar In our previous experience, mid convection has been optional rather than essential. We have not encountered issues with mid-convection in FV3 or MPAS. I will keep this WRF-Chem case and continue to investigate it in the future. Thanks! |
The Grell-Freitas (GF) cumulus convection is replaced with the Grell-Freitas-Li (GFL) submodule, which is consistent in WRF, MPAS and CCPP.
TYPE: new feature
KEYWORDS: submodule, cumulus, parameterization, scale-aware, aerosol-aware
SOURCE: Haiqin Li (Haiqin.Li@noaa.gov, CIRES/CU Boulder at NOAA/GSL)
DESCRIPTION OF CHANGES: The Grell-Freitas (GF) cumulus convection is replaced with the Grell-Freitas-Li (GFL) submodule, which is consistent in WRF, MPAS and CCPP. It will be easy to access the GFL updates via the hash pointer of submodule.
LIST OF MODIFIED FILES:
M .gitmodules
M Registry/Registry.EM_COMMON
M dyn_em/module_big_step_utilities_em.F
M dyn_em/module_convtrans_prep.F
M dyn_em/module_em.F
M phys/Makefile
M phys/module_cumulus_driver.F
M phys/module_lightning_driver.F
M phys/module_physics_addtendc.F
M phys/module_physics_init.F
M share/module_check_a_mundo.F
M wrftladj/module_cumulus_driver_ad.F
M wrftladj/module_cumulus_driver_tl.F
D module_cu_gf_ctrans.F
D module_cu_gf_deep.F
D module_cu_gf_sh.F
D module_cu_gf_wrfdrv.F
M chem/chem_driver.F
M chem/KPP/compile_wkc
TESTS CONDUCTED:
RELEASE NOTE: The Grell–Freitas (GF) cumulus convection scheme has been further developed as the Grell–Freitas–Li (GFL) submodule, which is implemented consistently across WRF, MPAS, and CCPP. Major updates include improved aerosol–convection interactions, several simplified approaches for cold-pool parameterization, and a new scale-awareness feature with subsidence spreading.
References:
Li, H., G. Grell, and Freitas, S. (2026): Aerosol-dependence of cumulus convection in the United Forecast System (UFS) Weather Model, to be submitted.
Grell, G., S., Freitas, and Li, H. (2026): A New Scale Aware Technique for Convective Parameterizations, to be submitted.