Skip to content
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

Frost mortality fix #816

Closed
wants to merge 2 commits into from
Closed

Conversation

glemieux
Copy link
Contributor

@glemieux glemieux commented Dec 3, 2021

Description:

This is a cleaned up version of PR #804 from @mpaiao. It was noted that the original PR had commits overlapping with #800 so we decided to simplify this PR. The relevant commit providing the fix has been cherry-picked into a new branch for clarity. The original PR description is copied below.

Simple bug fix for the non-zero frost mortality during the first day of the simulation. The problem is that patch variable bc_in%t_veg24_pa is set to zero at the beginning of the simulation, and this is interpreted as zero Kelvin. My solution was to simply bypass frost mortality during the first simulation day. This fix addresses issue #781 and should have minimal impact on long-term simulations.

Collaborators:

@mpaiao

Expectation of Answer Changes:

Checklist:

  • My change requires a change to the documentation.
  • I have updated the in-code documentation .AND. (the technical note .OR. the wiki) accordingly.
  • I have read the CONTRIBUTING document.
  • FATES PASS/FAIL regression tests were run
  • If answers were expected to change, evaluation was performed and provided

Test Results:

CTSM (or) E3SM (specify which) test hash-tag:

CTSM (or) E3SM (specify which) baseline hash-tag:

FATES baseline hash-tag:

Test Output:

The frost mortality needs the previous-day temperature, but the variable holding this
quantity is set initially to zero.  This is interpreted as 0 Kelvin by the mortality
routine, triggering the mortality rate.

(cherry picked from commit 6c6f5bf)
@glemieux glemieux mentioned this pull request Dec 3, 2021
5 tasks
@glemieux glemieux self-assigned this Dec 3, 2021
@glemieux glemieux linked an issue Dec 3, 2021 that may be closed by this pull request
Fixed conflicts against sci.1.52.0_api.20.0.0 (running means update)
@glemieux
Copy link
Contributor Author

Closing per #724

@glemieux glemieux closed this Dec 14, 2021
@glemieux glemieux deleted the marcos-frostmort-fix branch March 21, 2022 23:58
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.

Non-zero frost mortality at the beginning of the simulation
2 participants