"platforms/vscode:/vscode.git/clone" did not exist on "7db6258a9268819a592e7c296955a617ede42f85"
Commit f6aef43a authored by Peter Eastman's avatar Peter Eastman
Browse files

getState() in the Python API always computed energy, even if the user didn't ask for it.

parent 84a14401
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
PyObject *pyTuple; PyObject *pyTuple;
PyObject *pParameters; PyObject *pParameters;
types = State::Energy; types = 0;
if (getPositions) types |= State::Positions; if (getPositions) types |= State::Positions;
if (getVelocities) types |= State::Velocities; if (getVelocities) types |= State::Velocities;
if (getForces) types |= State::Forces; if (getForces) types |= State::Forces;
......
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