"platforms/opencl/src/OpenCLArray.cpp" did not exist on "d9e73e43cb2685dd079fdfbbb535ebed8f7327c3"
Commit 23ff308e authored by peastman's avatar peastman
Browse files

Fixed an error using virtual sites with patches

parent bdd1f78a
...@@ -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
......
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