"devtools/packaging/scripts/vscode:/vscode.git/clone" did not exist on "4b2c3ed60758fd81ba27fdfcad4dea250a7ea35e"
Commit 6bb42da5 authored by ChayaSt's avatar ChayaSt
Browse files

remove duplicate bonds from CustomBondForce

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