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
23ff308e
"platforms/opencl/src/OpenCLArray.cpp" did not exist on "d9e73e43cb2685dd079fdfbbb535ebed8f7327c3"
Commit
23ff308e
authored
Jun 03, 2020
by
peastman
Browse files
Fixed an error using virtual sites with patches
parent
bdd1f78a
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 @
23ff308e
...
@@ -813,6 +813,7 @@ class ForceField(object):
...
@@ -813,6 +813,7 @@ class ForceField(object):
newSite
=
deepcopy
(
site
)
newSite
=
deepcopy
(
site
)
newSite
.
index
=
indexMap
[
site
.
index
]
newSite
.
index
=
indexMap
[
site
.
index
]
newSite
.
atoms
=
[
indexMap
[
i
]
for
i
in
site
.
atoms
]
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
=
[
site
for
site
in
newTemplate
.
virtualSites
if
site
.
index
!=
newSite
.
index
]
newTemplate
.
virtualSites
.
append
(
newSite
)
newTemplate
.
virtualSites
.
append
(
newSite
)
return
newTemplates
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