"platforms/opencl/tests/TestOpenCLCustomCVForce.cpp" did not exist on "b06fc4a7a47478beacbaf5cc108f755653bc7abb"
Commit 556dddb6 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed bug computing neighbor list

parent 5ea8680f
...@@ -37,6 +37,7 @@ extern "C" __global__ void findBlockBounds(int numAtoms, real4 periodicBoxSize, ...@@ -37,6 +37,7 @@ extern "C" __global__ void findBlockBounds(int numAtoms, real4 periodicBoxSize,
#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] = make_real2(blockSize.x+blockSize.y+blockSize.z, index); sortedBlocks[index] = make_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