Commit ca74ebb8 authored by peastman's avatar peastman
Browse files

Python wrapper for getVirtualSite() returns the correct subclass

parent 82036a8c
......@@ -218,6 +218,7 @@ class SwigInputBuilder:
for name in sorted(integratorSubclassList):
self.fOut.write(",\n OpenMM::%s" % name)
self.fOut.write(");\n\n")
self.fOut.write("%factory(OpenMM::VirtualSite& OpenMM::System::getVirtualSite, OpenMM::TwoParticleAverageSite, OpenMM::ThreeParticleAverageSite, OpenMM::OutOfPlaneSite);\n\n")
self.fOut.write("\n")
def writeGlobalConstants(self):
......
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