Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix restart to continue steps #362

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ElliottKasoar
Copy link
Member

Resolves #353

I had also looked at changing dyn.nsteps itself, but adds complications such as with different implementations of dyn.get_time(), some, but not all, of which depend on nsteps.

While it's not straightforward to test a real interrupted simulation, I've updated the restart step numbers so that the "continued" steps is the same as the previous "extended" steps.

In most cases, this means the new final steps is the sum of the original two steps, but note in the case of test_auto_restart_restart_stem, this is not the case, due to the frequency of the restart file being written.

@ElliottKasoar ElliottKasoar added the bug Something isn't working label Dec 2, 2024
@ElliottKasoar ElliottKasoar self-assigned this Dec 2, 2024
@alinelena alinelena merged commit 7c7e317 into stfc:main Dec 3, 2024
8 checks passed
@ElliottKasoar ElliottKasoar deleted the fix-restart-steps branch December 3, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restarting MD should continue, not extend, steps
2 participants