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

Additional checks for crown depth allometry parameters #1314

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mpaiao
Copy link
Contributor

@mpaiao mpaiao commented Jan 14, 2025

Description:

This pull request intends to address the discussion in #1308, by adding multiple sanity checks on the parameters for height to crown depth allometry in subroutine PRTCheckParams. With this revision, it will issue either an error or a warning, depending on the severity of the problem.

  1. Fatal errors
  • When fates_allom_h2cd1 ≤ 0.
  • When fates_allom_dmode = 1 and fates_allom_h2cd1 > 1.
  • When fates_allom_dmode = 2, fates_allom_h2cd2 = 1 and fates_allom_h2cd1 > 1 (which is identical to previous case).
  1. Warning.
  • When fates_allom_dmode = 2, fates_allom_h2cd1 < 1 and fates_allom_h2cd1 is such that crown depth would exceed height for small cohorts.
  • When fates_allom_dmode = 2, fates_allom_h2cd1 > 1 and fates_allom_h2cd1 is such that crown depth would exceed height for large cohorts.

In the warning cases, FATES was already applying a cap to prevent crown depth to exceed height, but this was done quietly. The code now issues a warning during initialisation.

Collaborators:

@glemieux @rgknox @ekluzek

Expectation of Answer Changes:

No change in the results expected, except that now the code will not even run if the parameters are out of bounds, or at least issue a warning when some potentially unwanted behaviour occurs.

Checklist

If this is your first time contributing, please read the CONTRIBUTING document.

All checklist items must be checked to enable merging this pull request:

Contributor

  • The in-code documentation has been updated with descriptive comments
  • The documentation has been assessed to determine if updates are necessary

Integrator

  • FATES PASS/FAIL regression tests were run
  • Evaluation of test results for answer changes was performed and results provided

Documentation

Test Results:

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

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

FATES baseline hash-tag:

Test Output:

…nds to address

FATES discussion NGEET#1308, by adding multiple checks in subroutine PRTCheckParams.

1. Fatal error issued if parameters would cause the crown depth to always exceed height or
   to be negative.
2. Warning issued if parameters could cause crown depth to be capped to height either when
   plants are near recruitment size or when plants are near maximum height.

if the multiplier is negative,
@glemieux glemieux self-requested a review January 16, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Under Review
Development

Successfully merging this pull request may close these issues.

1 participant