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

remove low leaf area test #1951

Closed
wants to merge 5 commits into from

Conversation

peter-devoil
Copy link
Collaborator

Working on #1950

Test to find damage

@BrianCollinss
Copy link
Member

Don't you think it's better to move the test or the error handler to after lai += dltLAI;?

@jbrider
Copy link
Contributor

jbrider commented Nov 6, 2020

@BrianCollinss The piece of code that was replaced wasn't checking if dltLAI was larger than LAI. We're not sure what it's purpose was - it's been there a long time. The exception would show if the code was there to keep LAI > 0 - but it doesn't look like that was it's intent.

@BrianCollinss
Copy link
Member

BrianCollinss commented Nov 7, 2020

You're right. I am just thinking that if if(lai < 0.001) lai = 0.0 is left in place, lai += dltLAI could make the LAI<0, because lai=0.


senescedLAI = Max(0.0,lai - 0.1);
// FIXME - which is it? 0.01 or 0.1? If it's a fraction, then shouldn't we
// multiply by 0.9?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jbrider - query here. Fractional loss, or 0.1?

Copy link
Contributor

Choose a reason for hiding this comment

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

It was 0.1 to remove most of the leaf but retain enough that it wasn't killed due to loss of leaf.

@peter-devoil peter-devoil deleted the density_bug branch February 5, 2021 00:17
@peter-devoil
Copy link
Collaborator Author

Abandoned, another go at #1979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants