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
12ff40ef
Commit
12ff40ef
authored
May 07, 2012
by
Peter Eastman
Browse files
Bonds were being added to the Topology incorrectly
parent
a4673043
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wrappers/python/simtk/openmm/app/amberprmtopfile.py
wrappers/python/simtk/openmm/app/amberprmtopfile.py
+3
-2
No files found.
wrappers/python/simtk/openmm/app/amberprmtopfile.py
View file @
12ff40ef
...
@@ -99,10 +99,11 @@ class AmberPrmtopFile(object):
...
@@ -99,10 +99,11 @@ class AmberPrmtopFile(object):
# Add bonds to the topology
# Add bonds to the topology
atoms
=
list
(
top
.
atoms
())
for
bond
in
prmtop
.
getBondsWithH
():
for
bond
in
prmtop
.
getBondsWithH
():
top
.
addBond
(
bond
[
0
],
bond
[
1
])
top
.
addBond
(
atoms
[
bond
[
0
]
]
,
atoms
[
bond
[
1
]
]
)
for
bond
in
prmtop
.
getBondsNoH
():
for
bond
in
prmtop
.
getBondsNoH
():
top
.
addBond
(
bond
[
0
],
bond
[
1
])
top
.
addBond
(
atoms
[
bond
[
0
]
]
,
atoms
[
bond
[
1
]
]
)
# Set the periodic box size.
# Set the periodic box size.
...
...
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