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

Feature phenology biomass scaling #480

Merged
merged 31 commits into from
May 20, 2020
Merged

Conversation

kpalmqui
Copy link
Member

@kpalmqui kpalmqui commented Mar 7, 2020

This branch contains important updates to phenological activity, root fractions, biomass fractions, percent live fractions, and litter fractions.

chaukap and others added 21 commits December 4, 2019 12:28
Merge master into fg_specificity
biomass and transpiration are now specified in rgroup.in at the rgroup level, so the sxwbvt.in file was deleted.

I also added some documentation along the way. There is still a great deal of documenting to be done.
Merge master into fg_specificity_sxw
(issue #349)
Litter values are now specified per group per month. To do this I turned _prod_litter into a 2D array and adjusted allocation, population, usage, and deallocation accordingly.

While I was modifying functions I also added some Doxygen documentation comments.
(issue #349)
In my last commit I made a small error. I assigned v->veg[k].litter[m] in the same loop where we were accumulating v->veg[k].biomass[m].

This is equivalent to the difference between

for(i = 0; i < 5; ++i){
  k += i;
  l = k;
}

and

for(i = 0; i < 5; ++i){
  k += i;
}
l = k;

In both come snippets "l" will be correctly assigned, but in the first implementation multiple erronous assignments would be made first.
_prod_litter values now differ for shrubs and grasses/forbs. These were calculated as:

litter biomass / total biomass

using the values in veg.in for each SOILWAT2 vegetation type.
-updated documentation in sxwphen.in
-searched code and found no additional mention of phen values summing to 1.0, so nothing changed here
-found no evidence for the check that re-scales phen values to 1.0 if they do not sum to 1.0 in sxwphen.in, so nothing changed here
Merge master into sxw specificity branch
Merge master into phenology scaling branch
Merge master into phenology scaling branch
- also had to adjust the bottom limit of deep soil layers in siteparm.in as 7 soil layers now have roots
- also had to adjust the trco for shrubs, as they now have roots in the 7 soil layer. Trco shrubs is > 0 now in layer 7.
Merge master into phenology scaling branch
- few small changes to default values as documented in issue #431 and associated spreadsheet
- final adjustments to root fractsion based on spreadsheet in issue #463
@kpalmqui
Copy link
Member Author

kpalmqui commented Mar 7, 2020

Opening a pull request for this branch so @chaukap and I can both carefully review.

Copy link
Contributor

@chaukap chaukap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kpalmqui
Copy link
Member Author

kpalmqui commented Mar 13, 2020

Cannot be merged in until the complementary branch of rSFSTEP2 is approved and merged.

-deleted extra declarations of killfreq, prop_killed, prop_recovered, grazing_frq, prop_grazing that were merged in accidentally.
- %live peaks now match peaks in phenological activity
- Peak litter fractions for cheatgrass now occur in the early fall
- updates to values used as defaults in simulations
- these changes result in a.cool.forb and a.warm.forb now being non-zero
@kpalmqui kpalmqui requested a review from dschlaep May 7, 2020 14:40
Copy link
Member

@dschlaep dschlaep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked through the changes and all looks good.
I added a couple small suggestions to enhance two comments of input files so that they may be even more clear to users.
I also successfully compiled and run commit b130738 with make clean bint_testing_nongridded and make clean bint_testing_gridded.

kpalmqui and others added 2 commits May 14, 2020 13:54
-updated comments that describe litter, biomass, %live fractions
-update comments that describe calculation of bvt
@kpalmqui kpalmqui merged commit f2f7df6 into master May 20, 2020
@kpalmqui kpalmqui deleted the feature_phenology_biomass_scaling branch May 20, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants