Skip to content

Commit

Permalink
Fix velocity Verlet interface (#3388)
Browse files Browse the repository at this point in the history
Fixes the bug found in #3271.
Same as #3274, but for the development branch.
  • Loading branch information
kodiakhq[bot] authored Dec 24, 2019
2 parents dd2ea2e + 8177a67 commit 364c0b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/espressomd/integrate.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ cdef class Integrator:
self._method = state['_method']
if self._method == "STEEPEST_DESCENT":
self.set_steepest_descent(**state['_steepest_descent_params'])
elif self._method == "VV":
self.set_vv()
elif self._method == "NVT":
self.set_nvt()
elif self._method == "NPT":
Expand Down Expand Up @@ -122,6 +124,7 @@ cdef class Integrator:
Set the integration method to Velocity Verlet.
"""
integrate_set_nvt()
self._method = "VV"

def set_nvt(self):
Expand Down

0 comments on commit 364c0b4

Please sign in to comment.