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.
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
Get FATES and carbon_only test-suite tests to pass with MIMICS active #1643
Get FATES and carbon_only test-suite tests to pass with MIMICS active #1643
Changes from 1 commit
d5c1ed5
28a0406
a16cc85
41802c2
bea8e4a
88308bd
c0747af
098e86f
86d18b2
e52992c
d95a716
a8057f9
0438304
ffa084a
8bf3153
50f4af3
922aaf2
dd24018
cd42ddf
eadb090
f704b40
c4708e9
79a4ec3
1a4bb3f
e5c0d80
6794fa3
392d047
611fb16
08f3a3c
28acc2f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 was tracking down how mimics w/o fates arrives at this column level cnveg_carbonflux_inst%ligninNratioAvg_col(c)
Which took me here:
https://github.com/ESCOMP/CTSM/blob/master/src/biogeochem/CNVegCarbonFluxType.F90#L4498-L4503
It looks like its taking an average of the leaf, fineroot and cwd pools. But I was expecting that the terms ligninNratio_leaf_col(c), ligninNratio_froot_col(c) and ligninNratio_cwd would all be multiplied by their respective carbon weighting factors (ie leafc_to_litter_col, etc) before being divided through by the sum of those factors. I probably missed something though, maybe they already are, or I don't understand the units.
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 think I understand it now, looking here at the leaf term:
https://github.com/ESCOMP/CTSM/blob/master/src/biogeochem/CNVegCarbonFluxType.F90#L4422-L4424
I see that it is pre-multiplied by leafc_to_litter_patch(p).
Alright, I see no issue.
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.
However, I really think there should be units for the definition of the column level average, it wasn't clear to me exactly what this ratio is. It is defined here:
https://github.com/ESCOMP/CTSM/blob/master/src/biogeochem/CNVegCarbonFluxType.F90#L338
And I think it should have the same units as the multiple of these two factors (using leaf as a guide):
real(r8), allocatable :: lf_flig (:) ! leaf litter lignin fraction
real(r8), allocatable :: lflitcn (:) ! leaf litter C:N (gC/gN)
So it seems like this column level average is the mean C:N ratio of lignin tissues from leaves, fine-roots and cwd in the column. [gC/gN]
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.
Thanks for diving in here @rgknox. @slevisconsulting maybe some additional comments in the code are warranted to clarify what's going on?