Skip to content

Commit e51d4d5

Browse files
committed
Reassign velocities at the start of each dynamics block.
1 parent f4c9f69 commit e51d4d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/somd2/runner/_repex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,9 @@ def _run_block(
749749

750750
_logger.info(f"Running dynamics for {_lam_sym} = {lam:.5f}")
751751

752+
# Draw new velocities from the Maxwell-Boltzmann distribution.
753+
dynamics.randomise_velocities()
754+
752755
# Run the dynamics.
753756
dynamics.run(
754757
self._config.energy_frequency,

0 commit comments

Comments
 (0)