Unverified Commit 3516752a authored by Gareth-elliott's avatar Gareth-elliott Committed by GitHub
Browse files

Fix for non-equal force constants in stretch-bend (#3420)

parent f2cdf70a
......@@ -4653,7 +4653,12 @@ class AmoebaStretchBendGenerator(object):
raise ValueError(outputString)
else:
force.addBond((angle[0], angle[1], angle[2]), (bondAB, bondCB, angleDict['idealAngle']/radian, self.k1[i], self.k2[i]))
if type1 in types1 and type3 in types3:
k1, k2 = self.k1[i], self.k2[i]
else:
k1, k2 = self.k2[i], self.k1[i]
force.addBond((angle[0], angle[1], angle[2]), (bondAB, bondCB, angleDict['idealAngle']/radian, k1, k2))
break
......
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