Commit 5ada4eb6 authored by Peter Eastman's avatar Peter Eastman
Browse files

Bug fix.

parent d5cc0fba
......@@ -167,7 +167,7 @@ __global__ void kUpdateBsplines_kernel()
ddata[j] = make_float4(0.0f);
}
float4 posq = cSim.pPosq[tid];
float4 posq = cSim.pPosq[i];
float3 t = make_float3((posq.x/cSim.periodicBoxSizeX+1.0f)*cSim.pmeGridSize.x,
(posq.y/cSim.periodicBoxSizeY+1.0f)*cSim.pmeGridSize.y,
(posq.z/cSim.periodicBoxSizeZ+1.0f)*cSim.pmeGridSize.z);
......
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