Commit 6bb42da5 authored by ChayaSt's avatar ChayaSt
Browse files

remove duplicate bonds from CustomBondForce

parent b44a8829
......@@ -1796,6 +1796,8 @@ class LennardJonesGenerator(object):
# Add bonds for 1-4 scaled L-J from dihedrals
for torsion in data.propers:
pair = (torsion[0], torsion[3])
if pair not in lj14Pairs:
lj14Pairs.append((torsion[0], torsion[3]))
for lj14Pair in lj14Pairs:
i = lj_indx_list[lj14Pair[0]]
......
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