Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6bb42da5
"devtools/packaging/scripts/vscode:/vscode.git/clone" did not exist on "4b2c3ed60758fd81ba27fdfcad4dea250a7ea35e"
Commit
6bb42da5
authored
Mar 23, 2016
by
ChayaSt
Browse files
remove duplicate bonds from CustomBondForce
parent
b44a8829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+3
-1
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
6bb42da5
...
@@ -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
]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment