Skip to content

fixed divide by zero in Shin-Hong PBL#1219

Merged
kkeene44 merged 1 commit intowrf-model:release-v4.2.1from
matzegoebel:shinhong
Jul 10, 2020
Merged

fixed divide by zero in Shin-Hong PBL#1219
kkeene44 merged 1 commit intowrf-model:release-v4.2.1from
matzegoebel:shinhong

Conversation

@matzegoebel
Copy link
Contributor

@matzegoebel matzegoebel commented Jun 22, 2020

TYPE: bug fix

KEYWORDS: shin hong, divide by zero

SOURCE: Matthias Göbel (University of Innsbruck)

DESCRIPTION OF CHANGES: When using the Shin-Hong PBL with initially zero wind, divisions by zero can occur. This bug fix includes if-statements to avoid a crash of the model. All limit values that are used instead of the divisions by zero should be mathematically correct, except for the third change where I guessed the appropriate limit value.

LIST OF MODIFIED FILES: phys/module_bl_shinhong.F

RELEASE NOTE: fixed divide by zero in Shin-Hong PBL

@matzegoebel matzegoebel requested a review from a team as a code owner June 22, 2020 12:02
@dudhia
Copy link
Collaborator

dudhia commented Jun 22, 2020 via email

@davegill
Copy link
Contributor

@dudhia
Jimy,
Would you ping Hailey again to review?

@davegill
Copy link
Contributor

davegill commented Jul 7, 2020

@dudhia @weiwangncar

From Hailey:

Yes, I have reviewed them and the suggested fixes are physically correct.
The fixes are correct in that they remove zero denominators, and also correct in terms of physics behind.

Can this get approved?

@weiwangncar
Copy link
Collaborator

I'm ok with the fix, if Hailey is.

@dudhia
Copy link
Collaborator

dudhia commented Jul 7, 2020 via email

@kkeene44 kkeene44 merged commit ae26db3 into wrf-model:release-v4.2.1 Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants