Unverified Commit ee39f7ca authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed SWIG wrapping of DrudeIntegrator subclasses (#4089)

parent 303aaff7
...@@ -261,10 +261,12 @@ class SwigInputBuilder: ...@@ -261,10 +261,12 @@ class SwigInputBuilder:
baseName = getText("compoundname", baseNode) baseName = getText("compoundname", baseNode)
if baseName == 'OpenMM::Force': if baseName == 'OpenMM::Force':
forceSubclassList.append(shortClassName) forceSubclassList.append(shortClassName)
elif baseName == 'OpenMM::Integrator': elif baseName in ('OpenMM::Integrator', 'OpenMM::DrudeIntegrator'):
integratorSubclassList.append(shortClassName) integratorSubclassList.append(shortClassName)
elif baseName == 'OpenMM::TabulatedFunction': elif baseName == 'OpenMM::TabulatedFunction':
tabulatedFunctionSubclassList.append(shortClassName) tabulatedFunctionSubclassList.append(shortClassName)
# We need to include subclasses of DrudeIntegrator, but not DrudeIntegrator itself.
integratorSubclassList.remove('DrudeIntegrator')
self.fOut.write("%factory(OpenMM::Force& OpenMM::System::getForce") self.fOut.write("%factory(OpenMM::Force& OpenMM::System::getForce")
for name in sorted(forceSubclassList): for name in sorted(forceSubclassList):
......
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