Skip to content

Hist fields REPRODUCTIVE1N_TO_FOOD_PERHARV and _ANN lose their suffixes in LREPR* tests #3313

@slevis-lmwg

Description

@slevis-lmwg

Brief summary of bug

Two fincl3 history fields from the /crop testmods,
REPRODUCTIVE1N_TO_FOOD_PERHARV and REPRODUCTIVE1N_TO_FOOD_ANN,
lose their suffixes in LREPR* tests and become REPRODUCTIVE1N_TO_FOOD.

This occurs in cime_config/SystemTests/lreprstruct.py
in line user_nl_clm_text = user_nl_clm_text.replace(. The glitch occurs (for an undetermined reason as of this issue's opening) when this line attempts to replace GRAIN with REPRODUCTIVE1 and REPRODUCTIVE2, and REPRODUCTIVE1 ends up losing the suffixes _PERHARV and _ANN.

The problem surfaced in PR #2445 that separates instantaneous from non-inst. fields because:

  1. the former fields (with suffixes) are instantaneous, while the latter is "time: mean" and so
  2. the LREPR* tests generated h2a files for base and not for grain1 causing a base_grain1 comparison failure

In #2445 I resolved the issue by adding to fincl3 the setting hist_avgflag_pertape(3) = 'I' with approval from @ekluzek.

General bug information

CTSM version you are using: preparing to merge ctsm5.3.062 (#2445)

Does this bug cause significantly incorrect results in the model's science? No

Configurations affected: LREPR* tests

Metadata

Metadata

Labels

bugsomething is working incorrectlyinvestigationNeeds to be verified and more investigation into what's going on.size: smalltest: aux_clmPass aux_clm suite before mergingtest: pythonPass clm_pymods test suite plus Python sys/unit tests before merging

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions