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

Add re-scaled space parameter for cases when sum(space) < 1 if some STEPPE functional types are not established #198

Closed
kpalmqui opened this issue Dec 6, 2018 · 2 comments
Assignees
Milestone

Comments

@kpalmqui
Copy link
Member

kpalmqui commented Dec 6, 2018

The space parameters provided in input sum to 1.0. However, if one or more plant functional types is not estalished in a given year, this is no longer the case.

The space parameter is now utilized in resource partitioning and if the space values do not sum to 1.0, there will be remaining unassigned transpiration. Thus, each year, we need to re-calculate space for each established type such that the space parameters of the established functional types sum to 1.0.

@kpalmqui kpalmqui added this to the feature_space milestone Dec 6, 2018
@chaukap chaukap self-assigned this Feb 5, 2019
chaukap pushed a commit that referenced this issue Feb 6, 2019
To rescale space I had to modify three files:
in ST_structs.h: added a new variable, baseline_min_res_req, to the rgroup struct. This variable records the space parameter from inputs, since we are going to change min_res_req every year.

in ST_params.c: assigned input "space" to baseline_min_res_req.

in ST_resgroups.c: rescaled space. Once an rgroup is done establishing we betermine is any species established. If they have not we add the group's min_res_req to the total unused space variable. Once all groups are done establishing we loop through the rgroups again and redistribute any unused space.
@kpalmqui
Copy link
Member Author

kpalmqui commented Mar 1, 2019

@chaukap This is working as expected on my end. In most years, one or more plant functional types is not established and this functionality is triggered.

@kpalmqui
Copy link
Member Author

kpalmqui commented Mar 1, 2019

Resolved by commit 71b06e1

@kpalmqui kpalmqui closed this as completed Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants