Skip to content

Conversation

@samsrabin
Copy link
Member

@samsrabin samsrabin commented Nov 26, 2025

Description of changes

Adds a bunch of history outputs with the mxharvests dimension (max number of crop harvests per year; 2).

MAX_TLAI_PERHARV gives the maximum total LAI seen across the growing season.

15 other outputs give the biomass for five C pools (leaf, grain, stem, fine root, coarse root) at three crop phase transitions (emergence, anthesis, maturity).

Also adds an option to suppress a warning about low gddmaturity, which I used during the CRU-JRA crop calendar work.

Specific notes

Contributors other than yourself, if any: None

CTSM Issues Fixed (include github issue #): None

Are answers expected to change (and if so in what way)? No

Any User Interface Changes (namelist or namelist defaults changes)? No

Does this create a need to change or add documentation? Did you do so? Will need to update non-FATES output list; no.

Testing performed, if any: aux_clm reveals what seem to be threading problems with MAX_TLAI_PERHARV, which fails COMPARE_base_rest in ER[PS]_Ly3_P64x2 tests but not an ERS_Ly3 test.

To do

  • Fix threading issue.
  • Add HARVORGANC equivalent but JUST for grain. Will match what I have there for now, because grain is all CLM simulates by default. But it'll differ with the options underneath. (Do not name GRAIN unless you fix LPREPRSTRUCT test to handle this.) People should just use existing GRAINC_TO_(FOOD|SEED)_PERHARV outputs.
  • Add support for for_testing_use_second_grain_pool and/or for_testing_use_repr_structure_pool true (or throw error in that case). See above.

@samsrabin samsrabin self-assigned this Nov 26, 2025
@samsrabin samsrabin added enhancement new capability or improved behavior of existing capability bfb bit-for-bit science Enhancement to or bug impacting science next this should get some attention in the next week or two. Normally each Thursday SE meeting. labels Nov 26, 2025
Was using repr_grainc_to_food_patch + repr_grainc_to_seed_patch, but those don't get updated until after the harvest in CropPhenology, which is where the last CropPhaseTransitionBiomass() is called. They also, obviously, only include grain. Now using reproductivec_patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bfb bit-for-bit enhancement new capability or improved behavior of existing capability next this should get some attention in the next week or two. Normally each Thursday SE meeting. science Enhancement to or bug impacting science

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant