Fix Code Bug on CAPE Triggering Condition (#1904)
commit4c1b73240ccdbcc64ef9bf39169fc565c8c1aaf6
authorzhixiaozhang <72099269+zhixiaozhang@users.noreply.github.com>
Fri, 8 Dec 2023 07:21:30 +0000 (8 07:21 +0000)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 07:21:30 +0000 (8 00:21 -0700)
treee711ec0dc405cdf0b37370f55c42e4586d17a1da
parenteaaa8bdf24d1fa23af709640e85269da7d19b93b
Fix Code Bug on CAPE Triggering Condition (#1904)

TYPE: bug fix

KEYWORDS: CAPE, PLFC

SOURCE: Zhixiao Zhang (University of Oxford)

DESCRIPTION OF CHANGES:
Problem:
CAPE can't be updated

Solution:
Assign PLFC value before calculating CAPE because PLFC is the triggering condition for CAPE calculation.

ISSUE: Fixes #1903

LIST OF MODIFIED FILES:
M     phys/module_diag_functions.F

TESTS:
The Jenkins tests are all passing.

RELEASE NOTE: Fixed triggering condition code bug for CAPE calculation.
phys/module_diag_functions.F