Repository navigation
Conversation
The patch-level fine/coarse root to litter fluxes used to build dwt_slash_cflux are computed with flux_out_col_area, i.e. per unit COLUMN area, but were summed into dwt_slash_cflux_grc as if per unit GRIDCELL area, overstating DWT_SLASH_CFLUX (and C13/C14) by 1/cwtgcell_old. Add a get_cwtgcell_old accessor to patch_state_updater_type and multiply the patch slash flux by the old column weight, so the patch field is per gridcell area (as its long_name says) and the gridcell sum is correct. Diagnostics only. Fixes ESCOMP#4342 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quicktest results (DYN-001)Will ran this fix in an 80 year test against an unmodified baseline (case
Below is Claude's summary of the results for this PR.
Expected: A corrected DWT_SLASH_CFLUX diagnostic where columns change weight under land-use change. Found: Not testable in this configuration. DWT_SLASH_CFLUX is zero in both runs because an 1850 control has no land-use change. A transient historical run with dynamic land use would exercise this fix.
Setup80-year land-only runs: Analysis scripts: |
pSASU spin-up results (DYN-001)Follow-up to the quicktest results above. Will also ran this fix through a full cold-start spin-up (AD → SASU → pSASU; case
Below is Claude's summary of the results for this PR.
Found: Still not testable: an 1850 spin-up has no land-use change, so DWT_SLASH_CFLUX is zero in both runs. A transient historical run with dynamic land use would exercise this fix.
SetupEach case is a cold-start spin-up with its fix in place: Analysis scripts: |
Implications (DYN-001)Short summary of what the full cold-start spin-up (AD → SASU → pSASU, f19 BGC-Crop, 1850) means for this fix. DYN-001 (DWT_SLASH_CFLUX gridcell sum adds per-COLUMN-area root fluxes without column weights): Not exercised. Tested in the audit-easy bundle. DWT_SLASH_CFLUX only changes with transient land use, so an 1850 spin-up cannot test it. Diagnostic only; rely on the targeted test. Details: full pSASU results above Prepared with AI assistance (Claude) from the pSASU analysis in |
Historical (HIST) results (DYN-001)Follow-up to the pSASU results above, which could not test this fix because an 1850 spin-up has no land-use change. Will has now run each spun-up case forward as a transient historical simulation with dynamic land use (
Found: DWT_SLASH_CFLUX drops as expected. Over 2004–2023 the global slash C flux is 0.17 PgC/yr with the fix against 0.38 PgC/yr in the baseline (−55%, paired t p < 0.001). The reduction grows with land-use change: −25% in 1850–1900, −26% in 1901–1950, −45% in 1951–2000 and −55% in 2004–2023. Summed over 1850–2023 the reported slash C falls from 50.8 to 30.9 PgC (−39%).
Not tested here: that model state is bit-for-bit, as the PR expects. The bundled fixes change other fields, so this run cannot show it; the planned SetupHIST_DATM%CRUJRA2024_CLM60%BGC-CROP, Analysis scripts: |
|
This is only a diagnostic change can it go to b4b-dev? |
Test resultsBranch System tests
ERP test. The test's own baseline comparison reports PASS. That is because it only checks the last daily
The C13/C14 slash fields aren't on this test's history tapes. They are checked in the run below. The NLCOMP failure on the ERP test is only C13/C14 and the consistency checkSetup:
Only the slash fields change.
The ratio of branch to base, over gridcells with nonzero slash flux:
The fix never raises a slash flux. The C13 and C14 fluxes drop by the same proportion as total C. Consistency check. I compared
On master, the slash flux is overstated by 1 / (column weight), which can be enormous where a column's weight is tiny. With this PR, the slash flux matches the root fluxes in total, and in most gridcells, to well under 1%. It is not exact to round-off, though: only 20 of the 165 gridcells agree to 1e-10. The remaining gap does not simply follow column weight changes. Only 45 of the 145 differing gridcells had a column weight change at Jan 1. Possible explanations:
I haven't tracked it down. A column-level output ( Not run
Tests set up and run, and this summary written, with AI assistance (Claude Code). |
Consistency check settled with column-level outputThis follows up on the earlier results, where Setup. I reran the same 3-day branch case (
Why the earlier check was approximate. The column root fluxes are per unit area of the column's old weight. That is the convention this PR relies on when it multiplies by Two conclusions:
Run and summary written with AI assistance (Claude Code). |
|
The history averaging of the gridded root-flux fields noted above is now tracked in #4385, outside this PR. |


Description of changes
DWT_SLASH_CFLUXis built from the patch-level fine root, live coarse root and dead coarse root to-litter fluxes.DynamicPatchAdjustmentscomputes these withflux_out_col_area, so they are per unit column area.dyn_cnbal_patchsummed them intodwt_slash_cflux_grcas if they were per unit gridcell area, overstating the history field by 1/cwtgcell_oldfor each column. Details are in #4342.This PR:
get_cwtgcell_old(bounds)accessor topatch_state_updater_type(src/dyn_subgrid/dynPatchStateUpdaterMod.F90), which returns the column weights saved byset_old_weights.dyn_cnbal_patch(src/biogeochem/dynConsBiogeochemMod.F90), multiplies the C, C13 and C14 patch slash fluxes by the old column weight before summing to the gridcell.dwt_slash_cflux_patchis now per gridcell area, matching itsDWT_SLASH_CFLUX_PATCHlong_name.dwt_slash_cfluxis only used for history output. Model state and the actual litter/CWD inputs from land-cover change are unchanged.Status: tested; see the test results.
Specific notes
Contributors other than yourself, if any:
CTSM issues resolved or otherwise addressed, if any:
If answers are expected to change, describe (delete this line otherwise):
DWT_SLASH_CFLUX,DWT_SLASH_CFLUX_PATCH,C13_DWT_SLASH_CFLUXandC14_DWT_SLASH_CFLUXdecrease (they were overstated by 1/column weight). No other fields should change; restarts and model state are b4b.Any user interface changes (namelist or namelist defaults changes)?
Testing planned or performed, if any:
SMS_Ld3_PS.f09_g17.IHistClm50BgcCrop.derecho_intel.clm-f09_dec1990Start_GU_LULCC: only the slash flux fields DIFF from baselineERP_D_Ld10_P64x2.f10_f10_mg37.IHistClm60BgcCrop.derecho_intel.clm-ciso_decStart: same, including C13/C14DWT_SLASH_CFLUXequals the gridcell average of the vertically integratedDWT_FROOTC_TO_*+DWT_LIVECROOTC_TO_CWDC+DWT_DEADCROOTC_TO_CWDC(exact to round-off when the column fluxes are weighted by the pre-update column weights; see the column-level check)DWT_SLASH_CFLUX*fields of transient BGC testsQuestions for reviewers
b4b-dev?DynamicPatchAdjustmentsalso return the root fluxes withflux_out_grc_areain separate arrays, instead of adding the accessor. The accessor seemed less invasive. Any preference?🤖 Generated with Claude Code