Update the MPAS-A Kain-Fritsch CPS to WRF 4.4.1#994
Update the MPAS-A Kain-Fritsch CPS to WRF 4.4.1#994jherwehe wants to merge 4 commits intoMPAS-Dev:developfrom
Conversation
4909e7f to
3b1d341
Compare
|
Here a few comments that I have regarding the PR:
|
|
Reply for PR #994 comments from ldfowler58 on 11 April 2024:
|
|
Can you please resolve the conflicts in mpas_atmphys_driver.F, mpas_atmphys_driver_radiation_lw.F, and mpas_atmphys_driver_radiation_sw.F. I think that you need to resolve those conflicts first so that I can see the updated files with a new hash. Thanks. |
|
The code conflicts in these modules have been resolved as of 25 July 2024. |
|
Thanks for merging the sourcecode with v8.2.0. Makefile: Michael will need to review changes made to Makefile (see lines 363-367 for intel-mpi and line 782). you need to replace line 979 with that in develop. ./src/core_atmosphere/Registry.xml:
|
|
Jerry: I did not see that you modified the sourcecode in v8.2.0 as I suggested earlier. Hopefully, I am not overlooking something.
|
|
Laura, I may have misunderstood my responsibilities in the process of preparing our PRs for merging. I am not very experienced with Git or GitHub, so I may not be working this process correctly according to NCAR's practices. Please note the following points:
Please tell me how to proceed to meet NCAR's requirements and facilitate your work with these EPA PRs.
So to conclude, all of our EPA development work is conducted on our EPA HPC system, and code is only pushed back to my GitHub fork/clone as needed as new branches for PRs to the MPAS repo. I'll wait to hear back from you before taking any more steps. Thank you for your patience with my GitHub inexperience. |
commit a618d57770614909a12b6e423342982bdf15c78f . commit 66d1ab8
< !Balwinder.Singh@pnnl.gov: Code added to avoid 'divide by zero' error in zwo computation
|
|
Regarding item 1 in the previous post: Thank you. Hope this helps the forward movement on this PR. Regarding item 2: Yes, please go ahead and retain the Balwinder.Singh coding, which accomplishes the same as the changed code. That code change that you encountered in module_ra_rrtmg_sw.F was carried over from a supposed fix to an issue reported on the WRF Model Users website and introduced in the same module back in WRF-4.1.3. Later, apparently a newer coding to avoid divide-by-0 was introduced in module_ra_rrtmg_sw.F in WRF-4.2, but those changes did not get transferred to module_ra_rrtmg_sw.F in MPAS. Not sure why you would see different results or restart files due to this source code change to module_ra_rrtmg_sw.F. Aside: At the time of compiling the MPASv7.3-based code for this PR, a slightly modified version of the Makefile's intel-mpi section (which included "-fp-model precise" among other additional compile options) was used with the Intel 2021.4 compilers. |
3d9de31 to
e5c123a
Compare
This EPA_KF commit will update the MPAS-A release version of the KF convection parameterization scheme to a kfeta module based on the latest version included with WRF 4.4.1, thereby adding a convective trigger option, subgrid-scale cloud feedbacks (utilizing cloud fraction, and water and ice condensates) to RRTMG SW and LW radiation, and a dynamic convective time scale (see references below for more details). Other KF enhancements include extending the KF look-up table (to prevent "OUT OF BOUNDS" errors being written to fort.98 file) and improving the DQEVAP and QICE calculations. This version of module_cu_kfeta.F has also been generalized to work with either MPAS or WRF. Modified files: Makefile src/core_atmosphere/Registry.xml src/core_atmosphere/physics/mpas_atmphys_driver.F src/core_atmosphere/physics/mpas_atmphys_driver_cloudiness.F src/core_atmosphere/physics/mpas_atmphys_driver_convection.F src/core_atmosphere/physics/mpas_atmphys_driver_radiation_lw.F src/core_atmosphere/physics/mpas_atmphys_driver_radiation_sw.F src/core_atmosphere/physics/mpas_atmphys_vars.F src/core_atmosphere/physics/physics_wrf/module_cu_kfeta.F src/core_atmosphere/physics/physics_wrf/module_ra_rrtmg_sw.F These EPA_KF code changes to MPAS-A are based on the 22 August 2022 "develop" branch of MPAS v7.3. References: Bullock, O. R., K. Alapaty, J. A. Herwehe, and J. S. Kain, 2015: A dynamically computed convective time scale for the KainFritsch convective parameterization scheme. Monthly Weather Review, 143, 2105-2120. https://doi.org/10.1175/MWR-D-14-00251.1 Herwehe, J. A., K. Alapaty, T. L. Spero, and C. G. Nolte, 2014: Increasing the credibility of regional climate simulations by introducing subgrid-scale cloud-radiation interactions. Journal of Geophysical Research: Atmospheres, 119, 5317-5330. https://doi.org/10.1002/2014JD021504 Alapaty, K., J. A. Herwehe, T. L. Otte, C. G. Nolte, O. R. Bullock, M. S. Mallard, J. S. Kain, and J. Dudhia, 2012: Introducing subgrid- scale cloud feedbacks to radiation for regional meteorological and climate modeling. Geophysical Research Letters, 39, L24808. https://doi.org/10.1029/2012GL054031
…rrected errors made
during rebase:
-> In ./src/core_atmosphere/Registry.xml, corrected the package name cu_tietdke_in to
cu_ntiedtke_in.
-> In ./src/core_atmosphere/physics/physics_wrf/module_cu_kfeta.F, removed the extra
lines between "<<<<<<< HEAD" and ">>>>>>> 4909e7f ...".
-> Restored Makefile to the default Makefile for v8.2.2.
-> Restored ./src/core_atmosphere/physics/physics_wrf/module_ra_rrtmg_sw.F so that
atmosphere_model provides the same bit-for-bit forecasts against the develop
branch for the default convection-permitting and mesoscale-reference suites.
-> Renamed config_cu_rad_feedback to config_cu_radt_feedback in Registry.xml
and in ./physics.
-> In mpas_atmphys_driver.F, removed extra comments related to the KF CPS
since the sourcecode itself is not modified.
-> All other changes are minor.
e5c123a to
020faa6
Compare
This EPA_KF PR updates the MPAS-A release version of the KF convection
parameterization scheme to a kfeta module based on the latest version
included with WRF 4.4.1, thereby adding a convective trigger option,
subgrid-scale cloud feedbacks (utilizing cloud fraction, and water and
ice condensates) to RRTMG SW and LW radiation (Alapaty et al., 2012;
Herwehe et al., 2014), and a dynamic convective time scale (Bullock et
al., 2015) to MPAS-A. Other KF enhancements include extending the KF
look-up table (to prevent "OUT OF BOUNDS" errors being written to a
fort.98 file) and improving the DQEVAP and QICE calculations. This
version of module_cu_kfeta.F has also been generalized to work with
either MPAS or WRF.
New namelist.atmosphere options (with default values) added under &physics:
config_kfeta_trigger = 1
config_cu_rad_feedback = false
New variables available for output:
cldfrac_dp ; sugbgrid-scale cloud fraction from KF deep convection
cldfrac_sh ; sugbgrid-scale cloud fraction from KF shallow convection
cldfracwcu ; horizontal cloud fraction, resolved + KF Cu
cldfracwcut ; total cloud fraction, "vert-integrated" resolved + KF Cu
NOTE: These EPA_KF code changes to MPAS-A are based on the 22 August 2022
"develop" branch of MPAS v7.3.
References:
Alapaty, K., J. A. Herwehe, T. L. Otte, C. G. Nolte, O. R. Bullock, M.
S. Mallard, J. S. Kain, and J. Dudhia, 2012: Introducing subgrid-
scale cloud feedbacks to radiation for regional meteorological and
climate modeling. Geophysical Research Letters, 39, L24808.
https://doi.org/10.1029/2012GL054031
Bullock, O. R., K. Alapaty, J. A. Herwehe, and J. S. Kain, 2015: A
dynamically computed convective time scale for the Kain–Fritsch
convective parameterization scheme. Monthly Weather Review, 143,
2105-2120. https://doi.org/10.1175/MWR-D-14-00251.1
Herwehe, J. A., K. Alapaty, T. L. Spero, and C. G. Nolte, 2014:
Increasing the credibility of regional climate simulations by
introducing subgrid-scale cloud-radiation interactions. Journal of
Geophysical Research: Atmospheres, 119, 5317-5330.
https://doi.org/10.1002/2014JD021504