Unverified Commit f5f2773b authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed error adding exclusions from Gromacs top file (#3198)

parent 473069f0
......@@ -997,8 +997,7 @@ class GromacsTopFile(object):
for fields in moleculeType.exclusions:
atoms = [int(x)-1 for x in fields]
for atom in atoms[1:]:
if atom > atoms[0]:
exclusions.append((baseAtomIndex+atoms[0], baseAtomIndex+atom))
exclusions.append((baseAtomIndex+atoms[0], baseAtomIndex+atom))
# Record virtual sites
......
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