"platforms/reference/tests/TestReferenceLCPOForce.cpp" did not exist on "74ba76fc715fc7335258d53aea9eed8ade11ab16"
Commit 2c47f7b2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed bug in OpenCL as well

parent 556dddb6
...@@ -37,6 +37,7 @@ __kernel void findBlockBounds(int numAtoms, real4 periodicBoxSize, real4 invPeri ...@@ -37,6 +37,7 @@ __kernel void findBlockBounds(int numAtoms, real4 periodicBoxSize, real4 invPeri
#endif #endif
center.w = max(center.w, delta.x*delta.x+delta.y*delta.y+delta.z*delta.z); center.w = max(center.w, delta.x*delta.x+delta.y*delta.y+delta.z*delta.z);
} }
center.w = sqrt(center.w);
blockBoundingBox[index] = blockSize; blockBoundingBox[index] = blockSize;
blockCenter[index] = center; blockCenter[index] = center;
sortedBlocks[index] = (real2) (blockSize.x+blockSize.y+blockSize.z, index); sortedBlocks[index] = (real2) (blockSize.x+blockSize.y+blockSize.z, index);
......
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