Commit 43a4b41f authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a method that had the wrong return type

parent d279014c
...@@ -73,7 +73,7 @@ public: ...@@ -73,7 +73,7 @@ public:
* *
* @param context the context in which to execute this kernel * @param context the context in which to execute this kernel
*/ */
virtual double execute(OpenMMContextImpl& context) = 0; virtual void execute(OpenMMContextImpl& context) = 0;
}; };
/** /**
......
...@@ -82,7 +82,7 @@ static double calcEnergy(OpenMMContextImpl& context, System& system) { ...@@ -82,7 +82,7 @@ static double calcEnergy(OpenMMContextImpl& context, System& system) {
void CudaInitializeForcesKernel::initialize(const System& system) { void CudaInitializeForcesKernel::initialize(const System& system) {
} }
double CudaInitializeForcesKernel::execute(OpenMMContextImpl& context) { void CudaInitializeForcesKernel::execute(OpenMMContextImpl& context) {
} }
CudaCalcHarmonicBondForceKernel::~CudaCalcHarmonicBondForceKernel() { CudaCalcHarmonicBondForceKernel::~CudaCalcHarmonicBondForceKernel() {
......
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
* *
* @param context the context in which to execute this kernel * @param context the context in which to execute this kernel
*/ */
double execute(OpenMMContextImpl& context); void execute(OpenMMContextImpl& context);
}; };
/** /**
......
...@@ -107,7 +107,7 @@ void disposeRealArray(RealOpenMM** array, int size) { ...@@ -107,7 +107,7 @@ void disposeRealArray(RealOpenMM** array, int size) {
void ReferenceInitializeForcesKernel::initialize(const System& system) { void ReferenceInitializeForcesKernel::initialize(const System& system) {
} }
double ReferenceInitializeForcesKernel::execute(OpenMMContextImpl& context) { void ReferenceInitializeForcesKernel::execute(OpenMMContextImpl& context) {
double zero[] = {0.0, 0.0, 0.0}; double zero[] = {0.0, 0.0, 0.0};
context.getForces().fillWithValue(zero); context.getForces().fillWithValue(zero);
} }
......
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
* *
* @param context the context in which to execute this kernel * @param context the context in which to execute this kernel
*/ */
double execute(OpenMMContextImpl& context); void execute(OpenMMContextImpl& context);
}; };
/** /**
......
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