-
Notifications
You must be signed in to change notification settings - Fork 228
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
Basgra updates including the YASSO SOC model #3265
Conversation
…to basgra-yasso
…e from initialize subroutine
…to basgra-yasso
…to basgra-yasso
…bles work with YASSO
…to basgra-yasso Conflicts: models/basgra/R/run_tests.R
…to basgra-yasso
…culate the tendencies due to decomposition. This simplifies the previously buggy flow of computation for plant to soil fluxes
…ecan into basgra-yasso-nitrogen
Sorry for the long wait on this. @istfer @juliusvira is this ready to merge as soon as tests pass? |
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.
I started a comment about how these 12-MB IC files were too big for an R package, but on testing they compress remarkably well -- the entire PEcAn.BASGRA_1.7.2.tar.gz after this PR is still only 118 KB! So I think there's no action needed.
If need to maintain R 3.x compatibility, convert `*pr1(label, -1, var)` to `*pr(label,-1, array_containing_var, 1)`
@juliusvira @istfer would love to get this PR in. It appears that @infotroph has submitted a PR to @juliusvira branch of pecan with some fixes that should resolve the GH Actions warnings. Could you pull that in? That should update this PR and then we should be good to go! |
…te-note [Yasso] resolve check NOTE about fortran write()
Description
This PR adds a new soil organic carbon (SOC) model to the BASGRA grassland model, updates the wrappers, and adds unit tests for the wrappers. The SOC model is an adaptation of the YASSO20 (https://doi.org/10.5194/gmd-15-1735-2022); the user can switch between YASSO20 and the original BASGRA_N SOC model by setting a parameter. The YASSO implementation also includes an experimental nitrogen cycling extension, which can be optionally enabled.
Motivation and Context
The modifications to BASGRA provide an option to choose a more detailed SOC model when needed.
Review Time Estimate
Types of changes
Checklist: