From e814b3dd46bf541a009efb81e6b33357f6ff4e21 Mon Sep 17 00:00:00 2001 From: Xavier M Date: Thu, 6 Jun 2024 23:05:56 +0200 Subject: [PATCH] Fix offsets --- CudaSurf.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CudaSurf.cu b/CudaSurf.cu index deaa7c5..d29e117 100644 --- a/CudaSurf.cu +++ b/CudaSurf.cu @@ -564,9 +564,9 @@ std::vector computeSlicedSES(float3 positions[], float radii[], unsign // Grid is a cube float3 originGridNeighbor = { - minVal.x - maxAtomRad - 2 * probeRadius, - minVal.y - maxAtomRad - 2 * probeRadius, - minVal.z - maxAtomRad - 2 * probeRadius}; + minVal.x - maxAtomRad - probeRadius, + minVal.y - maxAtomRad - probeRadius, + minVal.z - maxAtomRad - probeRadius}; int gridNeighborSize = (int)ceil(maxDist / gridResolutionNeighbor);