TEMPO microphysics for WRF#2270
Conversation
|
@AndersJensen-NOAA Can you compile your code on your system with manage_externals? It is showing some errors doing the regression tests. |
@weiwangncar I think that I have the code now working with manage_externals pulling a specific tag of TEMPO. |
Actually, maybe not. Thanks for the email though -- I will check things again. Note that this compiles on my machine, but the regression tests are still failing. |
…tics and optional arguments
|
The regression tests have passed: |
|
@AndersJensen-NOAA Thanks for doing these tests! |
@dudhia I realized that TEMPO is 88 in the CCPP, so it probably makes sense to keep those the same. |
|
I didn't think the CCPP had numbers. Is it the UFS option? |
Yes, UFS. |
|
@AndersJensen-NOAA Thanks for updating the git repository. I would still like to see a few key improvements outlined in the PR message, possibly under the RELEASE NOTE section. Thanks! |
@weiwangncar I have some RELEASE notes -- let me know if you have questions. |
|
I resolved conflicts related to being in the same places as MYNN SFC additions. |
|
@AndersJensen-NOAA The updated PR looks good. Thanks! |
|
@dudhia Is option number 88 or or should it be changed? |
|
Anders gave us a reason to keep 88. |
@dudhia @weiwangncar |
Modification from tempo v3.0.0 to v3.0.4 (that pertain to WRF) TYPE: enhancement KEYWORDS: tempo SOURCE: Anders Jensen NOAA/GSL DESCRIPTION OF CHANGES: Bugfixes: - Bug fix for initialization of precipitation diagnostic Modifications (mostly for speedup and better memory useage) - global dt variable was removed and replaced with local variables to prevent parallel compute issues - 3D diagnostics data type was changed to `intent(inout)` from `intent(out)` to reduce the number of calls to `allocate` - microphysical process tendencies data type was changed from allocatable to a pointer contiguous in memory for better memory handling and efficiency ISSUE: Related to PR #2270
|
Would you please share the three tables: qr_acr_qs_data_tempo_v3, qr_acr_qg_data_tempo_v3, and freeze_water_data_tempo_v3? Thanks. |
|
@AndersJensen-NOAA Perhaps you can provide the instruction on how to generate the tables. Thanks! |
|
@weiwangncar @@AndersJensen-NOAA The instruction on code compiling is given in the code build_tables.F90. The issue is that, running this program takes too much time. I am not sure whether it is normal. I am trying to create the tables but the program has been running more than 1.5 hours and has not finished yet. |
|
@smileMchen I don't see a build_tables.F90 file. But I hear that the tables can be built with MPI. Is that what you are compiling and running the code? |
|
@weiwangncar Ming found that F90 file in the TEMPO/tools directory. |
|
Info on table building can be found here: If you don't want to build tables, you can grab on from the tempo/tables directory: And then the three bigger tables are on a NOAA server, and can be obtained with wget: @smileMchen I'm curious to know more about your build issue? Table building should not take 1.5 hours. Did you use intel or gnu? |
|
I compiled the code using gfortran v14.3.0. It takes more than 1.5hour to finish running the program (I run interactively with a single processor). It would be much faster if we run with multi-processors, I guess? |
|
@smileMchen: You can either use mpi or change the optimization in Makefile.gfortran. Changing -O0 to -O2 should give a large speed up. |
|
Thank you for the kind information. |


Addition of TEMPO microphysics
TYPE: new feature
KEYWORDS: Microphysics, Operational models
SOURCE: Anders Jensen NOAA/GSL
DESCRIPTION OF CHANGES:
Problem:
Microphysics development of a Thompson-Eidhammer based scheme for operational applications has advanced to a submodule, TEMPO. This new development should be made available to WRF users.
Solution:
Connect TEMPO to WRF. A cleaned and refactored version of TEMPO is being tested in the UFS community's MPAS. Additionally, a PR, MPAS-Dev/MPAS-Model#1393, to add TEMPO to NCAR's MPAS is in progress. This current PR will allow the community to use this same microphysics across the UFS, MPAS, and WRF.
LIST OF MODIFIED FILES:
M .gitmodules
M main/depends.common
M Makefile
M clean
M phys/Makefile
M phys/module_physics_init.F
M phys/module_microphysics_driver.F
M Registry.EM_COMMON
M dyn_em/module_initialize_real.F
TESTS CONDUCTED:
RELEASE NOTE:
TEMPO is the Thompson-Eidhammer Microphysics Parameterization for Operations. TEMPO lives here: https://github.com/NCAR/TEMPO and technical documentation lives here: https://ncar.github.io/TEMPO/.
TEMPO specific release notes are here: https://github.com/NCAR/TEMPO/releases/tag/tempo_v3.0.0
TEMPO version 3.0.0 is the current release version.
TEMPO is being tested in the ufs-community fork of MPAS for next-generation convection-allowing forecast systems (https://github.com/ufs-community/MPAS-Model). Thus, TEMPO is being continually evaluated for improvement.
Additionally, there is a PR in progress to connect TEMPO (v3.0.0) to NCAR's MPAS (MPAS-Dev/MPAS-Model#1393). The version of TEMPO currently in the CCPP (https://github.com/ufs-community/ccpp-physics) will be updated to v3.0.0 soonish. TEMPO is connected to WRF, MPAS, and CCPP as a submodule, and the same v3.0.0 code will be connected to WRF (this PR), MPAS, and CCPP.
In WRF, supported namelist options include
tempo_aerosolaware==1to use the aerosol-aware version, andtempo_hailaware==1to use the hail-aware version. Both options are on by default.Key improvements include: