"vscode:/vscode.git/clone" did not exist on "1f2cbefe6bd51075a6079f0abd7c6aac39b56e54"
Commit 12ff40ef authored by Peter Eastman's avatar Peter Eastman
Browse files

Bonds were being added to the Topology incorrectly

parent a4673043
......@@ -99,10 +99,11 @@ class AmberPrmtopFile(object):
# Add bonds to the topology
atoms = list(top.atoms())
for bond in prmtop.getBondsWithH():
top.addBond(bond[0], bond[1])
top.addBond(atoms[bond[0]], atoms[bond[1]])
for bond in prmtop.getBondsNoH():
top.addBond(bond[0], bond[1])
top.addBond(atoms[bond[0]], atoms[bond[1]])
# Set the periodic box size.
......
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