Commit a3a17da1 authored by peastman's avatar peastman
Browse files

Include PME optimization for OpenCL on CPU

parent f2e734dc
...@@ -226,6 +226,8 @@ __kernel void gridSpreadCharge(__global const real4* restrict posq, __global con ...@@ -226,6 +226,8 @@ __kernel void gridSpreadCharge(__global const real4* restrict posq, __global con
#else #else
const real charge = pos.w; const real charge = pos.w;
#endif #endif
if (charge == 0)
continue;
bool hasComputedThetas = false; bool hasComputedThetas = false;
for (int ix = 0; ix < PME_ORDER; ix++) { for (int ix = 0; ix < PME_ORDER; ix++) {
int xindex = gridIndex.x+ix; int xindex = gridIndex.x+ix;
......
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