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

Bug fix.

parent 5ada4eb6
...@@ -119,7 +119,7 @@ __global__ void kFindAtomRangeForGrid_kernel() ...@@ -119,7 +119,7 @@ __global__ void kFindAtomRangeForGrid_kernel()
int thread = blockIdx.x*blockDim.x+threadIdx.x; int thread = blockIdx.x*blockDim.x+threadIdx.x;
int start = (cSim.atoms*thread)/(blockDim.x*gridDim.x); int start = (cSim.atoms*thread)/(blockDim.x*gridDim.x);
int end = (cSim.atoms*(thread+1))/(blockDim.x*gridDim.x); int end = (cSim.atoms*(thread+1))/(blockDim.x*gridDim.x);
int last = (thread == 0 ? -1 : cSim.pPmeAtomGridIndex[start-1].y); int last = (start == 0 ? -1 : cSim.pPmeAtomGridIndex[start-1].y);
for (int i = start; i < end; ++i) for (int i = start; i < end; ++i)
{ {
float2 atomData = cSim.pPmeAtomGridIndex[i]; float2 atomData = cSim.pPmeAtomGridIndex[i];
......
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