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

Bug fix

parent 536ebaf7
......@@ -1242,7 +1242,7 @@ void OpenCLCalcNonbondedForceKernel::initialize(const System& system, const Nonb
}
cl.addForce(new OpenCLNonbondedForceInfo(maxBuffers, force));
defines.clear();
defines["NUM_ATOMS"] = intToString(numParticles);
defines["NUM_ATOMS"] = intToString(cl.getPaddedNumAtoms());
defines["NUM_EXCEPTIONS"] = intToString(numExceptions);
cl::Program program = cl.createProgram(OpenCLKernelSources::nonbondedExceptions, defines);
exceptionsKernel = cl::Kernel(program, "computeNonbondedExceptions");
......
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