Commit 2031d4e6 authored by peastman's avatar peastman
Browse files

Added some missing %newobject tags in SWIG configuration

parent 9da84a77
......@@ -278,6 +278,7 @@ Parameters:
"""Get the list of Forces in this System"""
return [self.getForce(i) for i in range(self.getNumForces())]
%}
%newobject __copy__;
OpenMM::System* __copy__() {
return OpenMM::XmlSerializer::clone<OpenMM::System>(*self);
}
......@@ -452,6 +453,7 @@ Parameters:
def __deepcopy__(self, memo):
return self.__copy__()
%}
%newobject __copy__;
OpenMM::Force* __copy__() {
return OpenMM::XmlSerializer::clone<OpenMM::Force>(*self);
}
......@@ -470,6 +472,7 @@ Parameters:
def __deepcopy__(self, memo):
return self.__copy__()
%}
%newobject __copy__;
OpenMM::Integrator* __copy__() {
return OpenMM::XmlSerializer::clone<OpenMM::Integrator>(*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