Commit 09600365 authored by Charlles Abreu's avatar Charlles Abreu
Browse files

Bug fix in grid expansion

parent 7132e1d3
......@@ -324,7 +324,7 @@ class WellTemperedMetadynamics(Metadynamics):
self._saveIndex = 0
for v in variables:
v._expanded = v.periodic and len(variables) > 1
v._extraWidth = min(gridExpansion, v.gridWidth) if v._expanded else 0
v._extraWidth = min(gridExpansion, v.gridWidth - 1) if v._expanded else 0
extraRange = v._extraWidth*(v.maxValue - v.minValue)/(v.gridWidth - 1)
v._actualWidth = v.gridWidth + 2*v._extraWidth
v._actualMin = v.minValue - extraRange
......
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