-
Notifications
You must be signed in to change notification settings - Fork 700
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
km_opt=5 causes several divide by 0 #1304
km_opt=5 causes several divide by 0 #1304
Conversation
e3d46fd
to
d420eb1
Compare
@zhangxsms Can you please review this fix? |
Jenkins testing is OK
|
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 have reviewed them and the suggested fixes are all physically correct.
Thanks for Matthias's careful inspection!
I'm ok with this PR. Is there anything else that needs to be done for this PR? |
@weiwangncar @dudhia @matzegoebel |
what are we actually waiting for here? |
I will approve |
TYPE: bug fix KEYWORDS: 3D TKE, km_opt, divide by zero SOURCE: Matthias Göbel (University of Innsbruck) DESCRIPTION OF CHANGES: Problem: When compiling WRF with the -D option, several divide-by-zero errors happen in the km_opt=5 scheme. This PR fixes the problems, and the changes are approved by the developer. LIST OF MODIFIED FILES: dyn_em/module_diffusion_em.F TESTS CONDUCTED: Jenkins testing is all PASS. RELEASE NOTE: Fixed divide by zero in the 3D-TKE option km_opt=5.
TYPE: bug fix
KEYWORDS: 3D TKE, km_opt, divide by zero
SOURCE: Matthias Göbel (University of Innsbruck)
DESCRIPTION OF CHANGES:
Problem:
When compiling WRF with the -D option, several divide-by-zero errors happen in the km_opt=5 scheme. Some of these are the same as in the Shin-Hong PBL scheme (see pull request #1219). I tried to fix all the appearing errors, but some of them are not so straightforward to fix (see annotations in the code).
LIST OF MODIFIED FILES:
dyn_em/module_diffusion_em.F
TESTS CONDUCTED:
RELEASE NOTE: fixed divide by zero in km_opt=5