-
Notifications
You must be signed in to change notification settings - Fork 434
NGEE Arctic IM3: bug-fix for LAI fraction buried by snow #7406
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
base: master
Are you sure you want to change the base?
Conversation
Hi @rfiorella. Thanks for this. Can you open an issue describing the bug at https://github.com/E3SM-Project/E3SM/issues? That is what we usually do. |
@rljacob, sure happy to - I'll link the issue number back to this PR when done. |
Extra commits from yesterday come from a bad rebase we made on our systems. I'll fix this morning so that only the original 3 commits remain in this PR and move/fix the rebase to another branch. |
Issues addressed: a. stocking density units passed through to VegStructUpdateMod.F90 were still stems/ha, they should be stems/m2 at this point. Fixed in pftvarcon.F90 b. a few remaining issues in the burial fraction equations for shrubs have been corrected.
Missing parenthesis in VegStructUpdateMod.F90 preventing model build from completing.
@thorntonpe just a quick check-in on this one, let me know if you need me to make any changes. Thanks! |
@rfiorella I've reviewed these changes, and everything looks good to me. Thanks for catching the bug. Approving. |
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.
The changes all look reasonable.
@peterdschwartz please prioritize integrating this PR. |
@rfiorella I tested your branch merged to next against the
|
@peterdschwartz It did not, and I think it's just because the test isn't long enough for the incorrect behavior to show up. A longer test should show the difference. Let me know if you'd like me to run a longer test (or change the existing test such that it runs longer). |
Right, the default test length isn't long enough to generate elm.h0 files. So i'd recommend changing the test name by adding a
The current run takes ~30s on pm-cpu so doubling the simulation time shouldn't be a big issue. |
@peterdschwartz I added a working on testing on local systems but we just had an OS migration, so a lot of packages aren't working yet, but I'll send an update when I've had a successful local test to show the diff. |
@peterdschwartz okay this should show the expected diff now, completed local tests. Had to use an |
The NGEE Arctic IM3 updates introduced bendresist and vegshape parameters to the VegStructUpdateMod.F90 subroutine where the fraction of exposed LAI based on a given snow depth is calculated.
The bendresist parameter was incorrectly applied to only the denominator (e.g., only to fb) when it should also have been applied to the numerator (e.g., to ol).
Low values of bendresist would cause the value subtracted from 1 in the fb equations to become very large,
and therefore the right side of the fb equation would evaluate to < 0 often due to artificially low values of bendresist(ivt(p))*(htop(p)-hbot(p)).
This PR resolves this issue by applying these parameters to the heights calculated in ol as well.
In addition, these modified parameters are restricted to shrubs only (e.g., woody(ivt(p)) == 2.0_r8).
A few other small issues are addressed:
h/t @ctrotterlanl for pointing out the issue with the snow burial equations.
[non-BFB] but only for the test introduced for the original iteration of the IM3 feature (elm-snowveg_arctic), which is expected since the feature tested here has been modified.
Fixes #7410