Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!435Correct vec neighbour find
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment