"docs-source/vscode:/vscode.git/clone" did not exist on "bc6fe72928817f33edfbec3150e40bcfc636c2c7"
Commit e76cbe31 authored by peastman's avatar peastman
Browse files

Merge pull request #386 from jchodera/master

Added step limit for LocalEnergyMinimizer in Modeller.addHydrogens() to fix hangs on bad structures
parents fc9a334b 3bb05bf5
...@@ -812,7 +812,7 @@ class Modeller(object): ...@@ -812,7 +812,7 @@ class Modeller(object):
else: else:
context = Context(system, VerletIntegrator(0.0), platform) context = Context(system, VerletIntegrator(0.0), platform)
context.setPositions(newPositions) context.setPositions(newPositions)
LocalEnergyMinimizer.minimize(context) LocalEnergyMinimizer.minimize(context, 1.0, 50)
self.topology = newTopology self.topology = newTopology
self.positions = context.getState(getPositions=True).getPositions() self.positions = context.getState(getPositions=True).getPositions()
del context del context
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment