Commit f9d4ed3b authored by James Willis's avatar James Willis
Browse files

Crucial +1 for the edge case where all particles in cell ci interact with at...

Crucial +1 for the edge case where all particles in cell ci interact with at least one particle in cell cj.
parent 233ef151
......@@ -321,7 +321,7 @@ __attribute__((always_inline)) INLINE static void populate_max_d_no_cache(
}
/* Find the maximum distance of pi particles into cj.*/
for (int k = first_pi; k < ci->count; k++) {
for (int k = first_pi + 1; k < ci->count; k++) {
max_di[k] = fmaxf(max_di[k - 1], max_di[k]);
}
......
Supports Markdown
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