"platforms/cuda/vscode:/vscode.git/clone" did not exist on "cecc774ae43f64fb6a2fd936a76eb3351d3864c1"
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
#endif
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;
blockCenter[index] = center;
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