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

Escape the self-task recursion in the gravity sub-cell unskipping only if the...

Escape the self-task recursion in the gravity sub-cell unskipping only if the cell has *no* gparts not if it has *some* gparts.
parent db8c453d
No related branches found
No related tags found
No related merge requests found
......@@ -1870,7 +1870,7 @@ void cell_activate_subcell_grav_tasks(struct cell *ci, struct cell *cj,
if (cj == NULL) {
/* Do anything? */
if (ci->gcount || !cell_is_active_gravity(ci, e)) return;
if (ci->gcount == 0 || !cell_is_active_gravity(ci, e)) return;
/* Recurse? */
if (ci->split) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment