Skip to content

bugfix: fix potential divide by zero in stomatal resistance diagnostic#646

Merged
davegill merged 1 commit intowrf-model:release-v4.0.1from
davegill:barlage_rsepa_bugfix
Oct 2, 2018
Merged

bugfix: fix potential divide by zero in stomatal resistance diagnostic#646
davegill merged 1 commit intowrf-model:release-v4.0.1from
davegill:barlage_rsepa_bugfix

Conversation

@davegill
Copy link
Contributor

@davegill davegill commented Oct 1, 2018

TYPE: bug fix

KEYWORDS: Noah-MP

SOURCE: Michael Barlage (NCAR)

DESCRIPTION OF CHANGES:

Bug fix introduced in #399 where divide by zero can occur if LAI is zero. Added check in IF statement. This calculation is only for diagnostics so shouldn't change answers, except to prevent model crash.

Mods to release-v4.0.1, not develop. Replaces PR #633

LIST OF MODIFIED FILES:

M phys/module_sf_noahmpdrv.F

TESTS CONDUCTED:

Summer and winter 24-hr case

KEYWORDS: Noah-MP

SOURCE: Michael Barlage (NCAR)

DESCRIPTION OF CHANGES:

Bug fix introduced in wrf-model#399 where divide by zero can occur if LAI is zero. Added check in IF statement. This calculation is only for diagnostics so shouldn't change answers, except to prevent model crash.

LIST OF MODIFIED FILES:

M phys/module_sf_noahmpdrv.F

TESTS CONDUCTED:

Summer and winter 24-hr case
@dudhia
Copy link
Collaborator

dudhia commented Oct 1, 2018

Looks OK. Prevents divide by zero.

@weiwangncar
Copy link
Collaborator

I'm ok with this PR.

Copy link
Collaborator

@dudhia dudhia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved by dudhia

@davegill davegill merged commit e2f3d2d into wrf-model:release-v4.0.1 Oct 2, 2018
@davegill davegill deleted the barlage_rsepa_bugfix branch November 7, 2018 00:01
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.

3 participants