-
Notifications
You must be signed in to change notification settings - Fork 344
post5.4: Use the correct C13/C14 atm ratio in the code more #3632
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
base: master
Are you sure you want to change the base?
Conversation
… in place of preindustrial values in the code from issue ESCOMP#3567
|
I can review this, Erik. We may be more productive going through this together, or doing a functional test of the code (historical simulation) to see if things look as expected? |
|
wwieder
left a comment
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'm not sure these changes are necessary, as they only seem to be for error catches when C pools have very small (or zero) values? Maybe we can talk more about this, @ekluzek
| c13_cnveg_carbonstate_inst%totvegc_patch(p) / cnveg_carbonstate_inst%totvegc_patch(p) | ||
| else | ||
| c13_cnveg_carbonstate_inst%leafc_xfer_patch(p) = leafc_xfer(p) * c13ratio | ||
| c13_cnveg_carbonstate_inst%leafc_xfer_patch(p) = leafc_xfer(p) * rc13_atm |
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.
This is only called if totvegC <0? I don't really understand how you can have leaf transfer C pool if totvegc is negative?
| c14_cnveg_carbonstate_inst%totvegc_patch(p) / cnveg_carbonstate_inst%totvegc_patch(p) | ||
| else | ||
| c14_cnveg_carbonstate_inst%leafc_xfer_patch(p) = leafc_xfer(p) * c14ratio | ||
| ! TODO: This should use the proper gridcell values rather than the global average |
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.
As above, I'm not really clear when / why this would be called?
| cs_soil%decomp0_cpools_vr_col = epsi | ||
| end where | ||
| if(use_c13)then | ||
| ! Does the c3_r2 here need to change? |
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.
This seems confusing, since c3_r2 is the "isotope ratio (13c/[12c+13c]) for C3 photosynthesis". This would ignore contribution from the 13C isotopic signature of C4 photosynthesis (c4_r2) to soil C pools?
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.
That said, this is also only called when decomp0_cpools_vr_col is a small number. Is this just for numerica stability?
Description of changes
This brings in changes to use the correct C13/C134 atmospheric ratio more. I need a scientist working in the C13/C14 space to review this.
Specific notes
Contributors other than yourself, if any:
CTSM Issues Fixed (include github issue #):
Fixes #3567
Are answers expected to change (and if so in what way)? Yes, when C13/C14 on for BGC simulations
Any User Interface Changes (namelist or namelist defaults changes)? No No
Does this create a need to change or add documentation? Did you do so? No No
Testing performed, if any: Limited so far