From 399695f3e01344a4b03d42e9cc11d11aac31a269 Mon Sep 17 00:00:00 2001 From: Chris Maffeo <cmaffeo2@illinois.edu> Date: Thu, 14 Mar 2019 17:27:27 -0500 Subject: [PATCH] Fixed issue with exclusions being examined in each cell --- src/ComputeForce.cuh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ComputeForce.cuh b/src/ComputeForce.cuh index 8547e60..01a91d6 100644 --- a/src/ComputeForce.cuh +++ b/src/ComputeForce.cuh @@ -335,12 +335,13 @@ __global__ void createPairlists(Vector3* __restrict__ pos, const int num, const ex_pair = excludeMap[ai -repID * num]; } - int currEx = ex_pair.x; - int nextEx = (ex_pair.x >= 0) ? excludes[currEx].ind2 : -1; - //loop over neighbor directions for(int idx = 0; idx < 27; ++idx) { + + int currEx = ex_pair.x; + int nextEx = (ex_pair.x >= 0) ? excludes[currEx].ind2 : -1; + int neighbor_cell = tex1Dfetch(NeighborsTex,idx+27*cellid_i); if(neighbor_cell < 0) -- GitLab