Commit 2061fbbd authored by Peter Eastman's avatar Peter Eastman
Browse files

Store references to the System and Integrator inside the Context so they don't...

Store references to the System and Integrator inside the Context so they don't get garbage collected
parent 825d4eb6
......@@ -266,3 +266,8 @@ def stripUnits(args):
newArgList.append(arg)
return tuple(newArgList)
%}
%pythonappend OpenMM::Context::Context %{
self._system = args[0]
self._integrator = args[1]
%}
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