"plugins/cudacompiler/src/CudaCompilerKernelFactory.cpp" did not exist on "f6352d88a31ead26e79e8de7fbeb0acf8f2f6d1a"
Commit 960c22af authored by Peter Eastman's avatar Peter Eastman
Browse files

Minor bug fix

parent a711ce2a
......@@ -48,16 +48,13 @@ void CudaCalcForcesAndEnergyKernel::beginComputation(ContextImpl& context, bool
_gpuContext* gpu = data.gpu;
if (data.nonbondedMethod != NO_CUTOFF && data.computeForceCount%100 == 0)
gpuReorderAtoms(gpu);
if (includeForces)
data.computeForceCount++;
data.computeForceCount++;
if (gpu->bIncludeGBSA || gpu->bIncludeGBVI)
kClearBornSumAndForces(gpu);
else if (includeForces)
kClearForces(gpu);
if (includeEnergy) {
data.stepCount++;
if (includeEnergy)
kClearEnergy(gpu);
}
}
double CudaCalcForcesAndEnergyKernel::finishComputation(ContextImpl& context, bool includeForces, bool includeEnergy) {
......
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