Unverified Commit 12f17a6c authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2727 from peastman/excludewith

Fixed an error using virtual sites with patches
parents bdd1f78a 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
......
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