Skip to content
Snippets Groups Projects
Commit 4edf439f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Silence a valgrind false positive in the gravity code.

parent 9141a9a8
No related branches found
No related tags found
1 merge request!1715Update planetary strength after planetary plus's master rebase
......@@ -343,6 +343,7 @@ static INLINE void runner_dopair_grav_pp_full_no_cache(
cache_i->a_y[i] += a_y;
cache_i->a_z[i] += a_z;
cache_i->pot[i] += pot;
cache_i->active[i] = 1;
}
/* Write back to the particle data */
......@@ -546,6 +547,7 @@ static INLINE void runner_dopair_grav_pp_truncated_no_cache(
cache_i->a_y[i] += a_y;
cache_i->a_z[i] += a_z;
cache_i->pot[i] += pot;
cache_i->active[i] = 1;
}
/* Write back to the particle data */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment