Commit 3d24513e authored by Matthieu Schaller's avatar Matthieu Schaller

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
...@@ -1870,7 +1870,7 @@ void cell_activate_subcell_grav_tasks(struct cell *ci, struct cell *cj, ...@@ -1870,7 +1870,7 @@ void cell_activate_subcell_grav_tasks(struct cell *ci, struct cell *cj,
if (cj == NULL) { if (cj == NULL) {
/* Do anything? */ /* Do anything? */
if (ci->gcount || !cell_is_active_gravity(ci, e)) return; if (ci->gcount == 0 || !cell_is_active_gravity(ci, e)) return;
/* Recurse? */ /* Recurse? */
if (ci->split) { if (ci->split) {
......
Markdown is supported
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