Commit 3f315a11 authored by Peter Eastman's avatar Peter Eastman
Browse files

Throw an exception if the user tries to use PME on OpenCL

parent 6ccf6169
......@@ -780,6 +780,8 @@ void OpenCLCalcNonbondedForceKernel::initialize(const System& system, const Nonb
ewaldForcesKernel = cl::Kernel(program, "calculateEwaldForces");
cosSinSums = new OpenCLArray<mm_float2>(cl, (2*kmaxx-1)*(2*kmaxy-1)*(2*kmaxz-1), "cosSinSums");
}
else if (force.getNonbondedMethod() == NonbondedForce::PME)
throw OpenMMException("OpenMMPlatform does not yet support PME");
else
ewaldSelfEnergy = 0.0;
......
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