Commit 8321bad8 authored by James Willis's avatar James Willis
Browse files

Make sure that if only the first particle in cj is in range to still populate max_index_i.

parent 672d04ee
......@@ -325,7 +325,7 @@ __attribute__((always_inline)) INLINE static void populate_max_index_no_cache(
last_pj = active_id;
/* Find the maximum index into cell i for each particle in range in cell j. */
if (last_pj > 0) {
if (last_pj >= 0) {
/* Start from the last particle in cell i. */
temp = ci->count - 1;
......
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