First merge of LPJ-GUESS state updating code #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Functions for updating LPJ-GUESS state for use with the SDA. The allocation() function is C++ ripped from the model, the allometry() function(much simpler) was recoded. Also include is a function so sum LPJ-GUESS per PFT vegetation state variables to the gridcell level and a simple function to scale the density of individuals in a cohort (and the associated C and N pools). The master function updateState.LPJGUESS() can be called should be called after the SDA has been carried out.
Conspicuously missing from this update is the ability to iterate with new values of biomass and density if the update produces an abnormal individual, and code from produing individuals of an entirely new PFT.
Motivation and Context
Essential for LPJ-GUESS SDA.
Review Time Estimate
Types of changes
Checklist: