Skip to content

GAMLN and REFL10CM for NTU microphysics#2363

Open
tzuchin12 wants to merge 3 commits into
wrf-model:developfrom
tzuchin12:ntu-v481
Open

GAMLN and REFL10CM for NTU microphysics#2363
tzuchin12 wants to merge 3 commits into
wrf-model:developfrom
tzuchin12:ntu-v481

Conversation

@tzuchin12

@tzuchin12 tzuchin12 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

TYPE : Enhancement

KEYWORDS : NTU microphysics, LOG_GAMMA, REFL_10CM

SOURCE : Tzu-Chin Tsai, Taiwan Central Weather Administration (CWA)

DESCRIPTION OF CHANGES :

  1. Replaced the custom GAMLN function with the intrinsic LOG_GAMMA function. The replacement with LOG_GAMMA requires Fortran 2008 support, which is available in the supported compilers for current WRF releases.
  2. Added diagnostic outputs for horizontal radar reflectivity (REFL_10CM) and hydrometeor effective radius (re_cloud, re_ice, and re_snow).

LIST OF MODIFIED FILES :

  1. phys/module_mp_ntu.F
  2. phys/module_microphysics_driver.F

TESTS CONDUCTED :
Successfully compiled WRF version 4.8.0 and completed the idealized 2D em_squall2d_x simulation without errors.

RELEASE NOTE :

  1. Updated the NTU microphysics scheme by replacing the custom GAMLN function with the intrinsic LOG_GAMMA function.
  2. Added diagnostic outputs for REFL_10CM, re_cloud, re_ice, and re_snow.

@tzuchin12 tzuchin12 requested a review from a team as a code owner July 9, 2026 07:10
@tzuchin12 tzuchin12 changed the title LOG_GAMMA and REFL_10CM LOG_GAMMA and REFL_10CM for NTU microphysics Jul 9, 2026
@tzuchin12 tzuchin12 changed the title LOG_GAMMA and REFL_10CM for NTU microphysics GAMMALN and REFL10CM for NTU microphysics Jul 9, 2026
@tzuchin12 tzuchin12 changed the title GAMMALN and REFL10CM for NTU microphysics GAMLN and REFL10CM for NTU microphysics Jul 9, 2026
@weiwangncar

Copy link
Copy Markdown
Collaborator

@tzuchin12 The compilation failed for all the runs. A log file is attached below. It looks like your base code isn't standard, with packages like NSSL_2MOMCCN, NSSL_2MOMG, not found in the standard version.
output_3.txt

@tzuchin12

Copy link
Copy Markdown
Contributor Author

@tzuchin12 The compilation failed for all the runs. A log file is attached below. It looks like your base code isn't standard, with packages like NSSL_2MOMCCN, NSSL_2MOMG, not found in the standard version. output_3.txt

Sorry, the module_microphysics_driver.F has been updated to the latest version.

@weiwangncar

Copy link
Copy Markdown
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

Comment thread phys/module_microphysics_driver.F Outdated
Comment thread phys/module_microphysics_driver.F Outdated
Comment thread phys/module_microphysics_driver.F Outdated
Comment thread phys/module_microphysics_driver.F Outdated
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.

2 participants