Skip to content

Conversation

@bartgol
Copy link
Contributor

@bartgol bartgol commented Jan 22, 2026

The value of run_t0's num steps may be used to compute the timestamp of the next output during the OM init, so its value must be correct before OM's are created.

[BFB]


Fixes #7682 .

@whannah1 if you still have that case somewhere and want to give this branch a try, that'd be great. If not, that's fine. I already checked on my workstation that the bug (which I could reproduce with a simple ne4pg2 F2010-SCREAMv1 case with no output streams) is gone with this branch, so I'm quite confident we caught it.

The issue was in the order in which we handled the creation of the output manager(s) and the restart of the num_steps counter inside out timestamps. The OM's were not getting the memo, b/c the restart file was read after the OM were created.

The value of run_t0's num steps may be used to compute the
timestamp of the next output during the OM init, so its
value must already be correct
@bartgol bartgol requested a review from tcclevenger January 22, 2026 01:22
@bartgol bartgol self-assigned this Jan 22, 2026
@bartgol bartgol added bug fix PR BFB PR leaves answers BFB EAMxx C++ based E3SM atmosphere model (aka SCREAM) labels Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BFB PR leaves answers BFB bug fix PR EAMxx C++ based E3SM atmosphere model (aka SCREAM)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EAMxx: Model fails to run twice with with REST_OPTION=nsteps

2 participants