Skip to content

Improve restart history-option error messages (#3593)#4113

Open
enu-emu wants to merge 1 commit into
ESCOMP:masterfrom
enu-emu:fix-issue-3593
Open

Improve restart history-option error messages (#3593)#4113
enu-emu wants to merge 1 commit into
ESCOMP:masterfrom
enu-emu:fix-issue-3593

Conversation

@enu-emu

@enu-emu enu-emu commented Jul 9, 2026

Copy link
Copy Markdown

Fixes #3593.

The error raised when history options change across a restart told the user what was forbidden ("You can NOT change history options on restart") but not what to do about it. This adds guidance to use a branch run instead, and clarifies that the restriction applies to a continuation run.

While tracing the code I noticed the same phrasing appears in three sibling endrun calls in the restart-read block of histFileMod.F90 — the ntapes, history_tape_in_use, and number-of-fields checks — so I updated all three for consistency. Happy to narrow it to just the ntapes message if you'd prefer.

This is a message-text-only change (no logic touched), so it should be bit-for-bit identical. One note: I wasn't able to build/run CTSM locally (M1 Mac, limited RAM/disk), so I verified this by code inspection and would appreciate it being checked via your regression testing.

🤖 Generated with Claude Code

The three "you can NOT change history options on restart" errors in
histFileMod.F90 stated the problem but not the remedy. Add guidance
telling users to use a branch run instead, and clarify that the
restriction applies to a continuation run. Message-text only; no
logic change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve "number of ntapes differs from restart file" error msg

1 participant