-
Notifications
You must be signed in to change notification settings - Fork 797
Dynamic Lightning (LPI): Registry/driver/lightning updates only #2258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Dynamic Lightning (LPI): Registry/driver/lightning updates only #2258
Conversation
|
I accidentally uploaded an abbreviated version of registry.sbm_light. I have uploaded the complete file and all should be well. |
|
OK. We had some automatic checks that failed and will let you know what they are later. This could be special compilation options for example. |
|
Hi Jimy:
I just compiled the code I sent you on my machine without a problem. There
is an extra variable, "l_obs," which I used to assimilate lightning.
Rather than remove it, I just left it, since I may want to use it in the
future.
It's a new option; I didn't put it under the lightning option schemes (I
don't remember why I did this but I think it was complicated merging it
with the other codes).
Barry
…On Mon, Nov 3, 2025 at 11:12 AM dudhia ***@***.***> wrote:
*dudhia* left a comment (wrf-model/WRF#2258)
<#2258 (comment)>
OK. We had some automatic checks that failed and will let you know what
they are later. This could be special compilation options for example.
—
Reply to this email directly, view it on GitHub
<#2258 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWLWRTJQYQT7ZYJKJTAMK3325WHPAVCNFSM6AAAAACK5MMZMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIOBRGM2DANRRGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Barry H. Lynn, Ph.D
Senior Scientist, Lecturer,
The Institute of Earth Sciences,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
Weather It Is, LTD
Weather and Climate Focus
https://weather-it-is.com <http://weather-it-is.com>
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
|
| LOGICAL :: f_flux ! flag for computing averaged fluxes in cu_gd | ||
| REAL :: curr_secs, curr_secs2, curr_mins2 | ||
| REAL(8) :: curr_secs_r8, curr_secs2_r8 | ||
| REAL :: curr_secs, curr_secs2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you should be making this change. The two lines in the code should be retained.
|
|
||
| TYPE(WRFU_TimeInterval) :: tmpTimeInterval, tmpTimeInterval2 | ||
| REAL :: real_time | ||
| REAL(8) :: real_time_r8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same for this line, which should not be removed.
| curr_secs2 = real_time(tmpTimeInterval2) | ||
| curr_secs_r8 = real_time_r8(tmpTimeInterval) | ||
| curr_secs2_r8 = real_time_r8(tmpTimeInterval2) | ||
| curr_mins2 = REAL( curr_secs2_r8 / 60.0d0 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same applies here.
| , config_flags%use_adaptive_time_step & | ||
| , curr_secs, curr_mins2 & | ||
| , curr_secs & | ||
| , psim , psih , gz1oz0 & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same applies here.
| & ,P8W=p8w ,P=p_phy ,PI_PHY=pi_phy & | ||
| & ,RHO=grid%rho ,SPEC_ZONE=grid%spec_zone & | ||
| & ,SR=grid%sr ,TH=th_phy & | ||
| & ,ssat=grid%ssat, ssati=grid%ssati & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too.
| !====================== | ||
| #endif | ||
| & ,XLAND=grid%xland,SNOWH=grid%SNOW,XICE=grid%XICE & | ||
| & ,XLAND=grid%xland,SNOWH=grid%SNOW & !PMA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here.
| module_bl_mynnedmf_driver.o \ | ||
| module_bl_mynn_common.o \ | ||
| module_bl_mynn.o \ | ||
| module_bl_mynn_wrapper.o \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should not be changed in your PR.
| module_mp_etanew.o \ | ||
| module_mp_fer_hires.o \ | ||
| module_mp_thompson.o \ | ||
| module_mp_rcon.o \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be removed.
| module_mp_wdm5.o \ | ||
| module_mp_wdm6.o \ | ||
| module_mp_wdm7.o \ | ||
| module_mp_udm.o \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one too, should not be removed.
| TARGETDIR = ./ | ||
|
|
||
| $(LIBTARGET) : | ||
| (cd .. && ./tools/manage_externals/checkout_externals --externals ./arch/Externals.cfg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You definitely should not remove this line.
| else \ | ||
| echo No action required for MYNN-EDMF submodule ; \ | ||
| fi | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not remove these lines either.
| ,cldfra, cldfra_old, exch_h, nsource & | ||
| ,qlsink, precr, preci, precs, precg & | ||
| ,xland,snowh,xice,itimestep & | ||
| ,xland,snowh,itimestep & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not change it here.
| #endif | ||
| ,qnwfa2d, qnifa2d, qnbca2d & ! for water/ice-friendly/black carbon aerosols | ||
| ,qnocbb2d, qnbcbb2d & ! for biomass burning aerosols | ||
| ,ssat,ssati & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not remove this line.
| USE module_state_description, ONLY : & | ||
| KESSLERSCHEME, LINSCHEME, SBU_YLINSCHEME, WSM3SCHEME, WSM5SCHEME & | ||
| ,WSM6SCHEME, ETAMPNEW, FER_MP_HIRES, THOMPSON, THOMPSONAERO, RCON_MP_SCHEME, THOMPSONGH, FAST_KHAIN_LYNN_SHPUND, MORR_TWO_MOMENT & | ||
| ,WSM6SCHEME, ETAMPNEW, FER_MP_HIRES, THOMPSON, THOMPSONAERO, THOMPSONGH, FAST_KHAIN_LYNN_SHPUND, MORR_TWO_MOMENT & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not change this line.
| ,GSFCGCESCHEME, WDM5SCHEME, WDM6SCHEME, NSSL_2MOM, MADWRF_MP & | ||
| ,FER_MP_HIRES_ADVECT & | ||
| ,WSM7SCHEME, WDM7SCHEME, UDMSCHEME & | ||
| ,WSM7SCHEME, WDM7SCHEME & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not change this line.
| USE module_mp_wsm7 | ||
| USE module_mp_etanew | ||
| USE module_mp_fer_hires | ||
| USE module_mp_rcon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not remove this line.
| USE module_mp_wdm5 | ||
| USE module_mp_wdm6 | ||
| USE module_mp_wdm7 | ||
| USE module_mp_udm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not remove this line.
| ! Optional | ||
| ! | ||
| REAL, OPTIONAL, DIMENSION( ims:ime , kms:kme, jms:jme ) , INTENT(OUT) :: refl_10cm,ssat,ssati | ||
| REAL, OPTIONAL, DIMENSION( ims:ime , kms:kme, jms:jme ) , INTENT(OUT) :: refl_10cm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not change this line.
| dbz = refl_10cm, & | ||
| ssat3d = ssat, & | ||
| ssati = ssati, & | ||
| nssl_ssat_output = config_flags%nssl_ssat_output, & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not remove these lines.
| ENDIF | ||
| ELSE | ||
| CALL wrf_error_fatal ( 'arguments not present for calling rcon' ) | ||
| ENDIF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not remove these lines.
| ELSE | ||
| CALL wrf_error_fatal ( 'arguments not present for calling udm') | ||
| ENDIF | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not remove these lines.
|
@BarryHLynn The general errors you made is to overwrite the current version of the code with the version you worked on. Doing so, you removed many new updates we made in the model (which I pointed out). Those changes are not part of the modification you intend to make, and should be removed / corrected for this PR. |
|
Hi:
I am not sure how this happened.
I downloaded the code a while back (but not too long ago) and made changes
only to solve_em.F by passing some variables to the microphysical driver,
and added three subroutine calls to the driver. I am not sure how to
address any of the other issues because I had trouble downloading a clean
version from the web again. I can't compile on a node that has access to
the web and the extra pull did not solve the problem with missing code.
I indicated which routines I added and which were modified. That is all
that has to be done.
Barry
…On Thu, Nov 20, 2025 at 2:12 PM weiwangncar ***@***.***> wrote:
*weiwangncar* left a comment (wrf-model/WRF#2258)
<#2258 (comment)>
@BarryHLynn <https://github.com/BarryHLynn> The general errors you made
is to overwrite the current version of the code with the version you worked
on. Doing so, you removed many new updates we made in the model (which I
pointed out). Those changes are not part of the modification you intend to
make, and should be removed / corrected for this PR.
—
Reply to this email directly, view it on GitHub
<#2258 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWLWRXKGQSCCFXYGZSPL4335WVZZAVCNFSM6AAAAACK5MMZMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKNJXGY4TONRZGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Barry H. Lynn, Ph.D
Senior Scientist, Lecturer,
The Institute of Earth Sciences,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
Weather It Is, LTD
Weather and Climate Focus
https://weather-it-is.com <http://weather-it-is.com>
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
|
|
In github one thing not to do is copy modules from another directory into the one you downloaded. You should only clone an existing recent release version and edit that directly. |
To add the Dynamic Lightning Scheme to the public version of WRF
New Feature
Lightning-Forecast Lightning Dynamic Lightning Scheme Cloud-to-ground-Lightning, Intracloud Lightning. (LPI code also updated to calculate 3d and 2d LPI)
Barry.H.Lynn@gmail.com; Barry.Lynn@Weather-It-Is.com (Weather It Is, LTD and Hebrew University of Jerusalem)
DESCRIPTION OF CHANGES:
Registry/registry.dyn_light
dyn_em/solve_em.F
phys/Makefile
phys/module_calc_lpi_new.F
phys/module_ltng_pe.F
phys/module_ltng_strokes.F
phys/module_microphysics_driver.F
Just added/modified these routines (based on already published work going back to 2010).
ISSUE: For use when this PR closes an issue.
Fixes #123
RELEASE NOTE: Include a stand-alone message suitable for the inclusion in the minor and annual releases. A publication citation is appropriate. This is the Dynamic Lightning Scheme based originally on this paper.
Lynn, B. H., 2017: The Usefulness and Economic Value of Total Lightning Forecasts Made with a Dynamic Lightning Scheme Coupled with Lightning Data Assimilation. Wea. Forecasting, 32, 645–663, https://doi.org/10.1175/WAF-D-16-0031.1.