Commit ff7874d7 authored by Peter Eastman's avatar Peter Eastman
Browse files

Added getPlatform() to OpenMMContext

parent a043fea5
...@@ -96,6 +96,14 @@ public: ...@@ -96,6 +96,14 @@ public:
* Get Integrator being used to by this context. * Get Integrator being used to by this context.
*/ */
Integrator& getIntegrator(); Integrator& getIntegrator();
/**
* Get the Platform being used for calculations.
*/
const Platform& getPlatform() const;
/**
* Get the Platform being used for calculations.
*/
Platform& getPlatform();
/** /**
* Get a State object recording the current state information stored in this context. * Get a State object recording the current state information stored in this context.
* *
......
...@@ -57,12 +57,18 @@ System& OpenMMContext::getSystem() { ...@@ -57,12 +57,18 @@ System& OpenMMContext::getSystem() {
const Integrator& OpenMMContext::getIntegrator() const { const Integrator& OpenMMContext::getIntegrator() const {
return impl->getIntegrator(); return impl->getIntegrator();
} }
Integrator& OpenMMContext::getIntegrator() { Integrator& OpenMMContext::getIntegrator() {
return impl->getIntegrator(); return impl->getIntegrator();
}
const Platform& OpenMMContext::getPlatform() const {
return impl->getPlatform();
}
Platform& OpenMMContext::getPlatform() {
return impl->getPlatform();
} }
State OpenMMContext::getState(int types) const { State OpenMMContext::getState(int types) const {
......
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