Skip to content

Conversation

@ekluzek
Copy link
Collaborator

@ekluzek ekluzek commented Nov 25, 2025

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

… in place of preindustrial values in the code from issue ESCOMP#3567
@ekluzek ekluzek self-assigned this Nov 25, 2025
@ekluzek ekluzek added science Enhancement to or bug impacting science non-bfb Changes answers (incl. adding tests) labels Nov 25, 2025
@wwieder
Copy link
Contributor

wwieder commented Nov 25, 2025

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?

@ekluzek ekluzek changed the title Use the correct C13/C14 atm ratio in the code more post5.4: Use the correct C13/C14 atm ratio in the code more Dec 1, 2025
@ekluzek ekluzek changed the base branch from master to post-5.4 December 5, 2025 23:28
@samsrabin
Copy link
Member

  • Rebase this to master

@ekluzek ekluzek changed the base branch from post-5.4 to master December 8, 2025 21:02
Copy link
Contributor

@wwieder wwieder left a 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
Copy link
Contributor

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
Copy link
Contributor

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?
Copy link
Contributor

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?

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

non-bfb Changes answers (incl. adding tests) science Enhancement to or bug impacting science

Projects

None yet

Development

Successfully merging this pull request may close these issues.

c13ratio/c14ratio is used in places where rc13_atm.rc14_atm should be used from the timeseries file

3 participants