"platforms/cuda/tests/TestCudaPythonForce.cpp" did not exist on "b06fc4a7a47478beacbaf5cc108f755653bc7abb"
Commit 641de894 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Added code to get/set random number generator seed

parent 0b4066cf
...@@ -78,6 +78,18 @@ public: ...@@ -78,6 +78,18 @@ public:
void setFriction(double coeff) { void setFriction(double coeff) {
friction = coeff; friction = coeff;
} }
/**
* Get the random number seed
*/
int getRandomNumberSeed(void ) const {
return randomNumberSeed;
}
/**
* Set the random number seed
*/
void setRandomNumberSeed(int inputRandomNumberSeed) {
randomNumberSeed = inputRandomNumberSeed;
}
/** /**
* Advance a simulation through time by taking a series of time steps. * Advance a simulation through time by taking a series of time steps.
* *
...@@ -97,6 +109,7 @@ protected: ...@@ -97,6 +109,7 @@ protected:
std::vector<std::string> getKernelNames(); std::vector<std::string> getKernelNames();
private: private:
double temperature, friction; double temperature, friction;
int randomNumberSeed;
OpenMMContextImpl* context; OpenMMContextImpl* context;
Kernel kernel; Kernel kernel;
}; };
......
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