Skip to content

Fix repex restart state sychronisation#130

Merged
lohedges merged 1 commit intodevelfrom
fix_repex_sync
Mar 20, 2026
Merged

Fix repex restart state sychronisation#130
lohedges merged 1 commit intodevelfrom
fix_repex_sync

Conversation

@lohedges
Copy link
Contributor

This PR fixes a bug where restarting a replica exchange simulation would restore each replica's OpenMM context and GCMC water state from its own pre-mix saved state, discarding the last round of replica exchange mixing. Since mixing occurs at the end of each cycle and the next cycle's dynamics run directly from the post-mix context, the correct state to restore is _openmm_states[_states[i]] rather than _openmm_states[i], and similarly for the GCMC water state. This ensures that extended or restarted runs continue from exactly the same state as an uninterrupted simulation would. of repex states on restart.

@lohedges lohedges added the bug Something isn't working label Mar 20, 2026
@lohedges lohedges merged commit 86e14b0 into devel Mar 20, 2026
4 checks passed
@lohedges lohedges deleted the fix_repex_sync branch March 20, 2026 10:47
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.

1 participant