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
12f17a6c
Unverified
Commit
12f17a6c
authored
Jun 03, 2020
by
peastman
Committed by
GitHub
Jun 03, 2020
Browse files
Merge pull request #2727 from peastman/excludewith
Fixed an error using virtual sites with patches
parents
bdd1f78a
23ff308e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+1
-0
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
12f17a6c
...
...
@@ -813,6 +813,7 @@ class ForceField(object):
newSite
=
deepcopy
(
site
)
newSite
.
index
=
indexMap
[
site
.
index
]
newSite
.
atoms
=
[
indexMap
[
i
]
for
i
in
site
.
atoms
]
newSite
.
excludeWith
=
indexMap
[
site
.
excludeWith
]
newTemplate
.
virtualSites
=
[
site
for
site
in
newTemplate
.
virtualSites
if
site
.
index
!=
newSite
.
index
]
newTemplate
.
virtualSites
.
append
(
newSite
)
return
newTemplates
...
...
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