Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a lower limit to stem allocation to avoid negative states
The stem:leaf allocation variable can go negative without this limiter, which can cause negative stem carbon pools.
- Loading branch information
5f7fbe4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thorntonpe On the HES call today we wondered whether, as part of fixing this, you looked for other missing negative-value checks on pools and ratios in the land model?
5f7fbe4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thorntonpe do you plan on submitting a PR for this fix?
5f7fbe4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bpbond I have not done exhaustive checking for other issues like this. It's a very good idea, and would also be good to add as a run-time error check similar to the mass balance checking that is done now.
@evasinha the fix is being tested in a coupled run now, and then I expect to issue a PR. Those results may already be available - I've been traveling this week and just back in the office this afternoon.