Commit 668f58a9 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Also use the function to check the recursion for the SUB_SELF functions.

parent a26bb88d
......@@ -2333,7 +2333,7 @@ void DOSUB_SELF1(struct runner *r, struct cell *ci, int gettimer) {
if (ci->count == 0 || !cell_is_active(ci, r->e)) return;
/* Recurse? */
if (ci->split) {
if (cell_can_recurse_in_pair_task(ci)) {
/* Loop over all progeny. */
for (int k = 0; k < 8; k++)
......@@ -2628,7 +2628,7 @@ void DOSUB_SELF2(struct runner *r, struct cell *ci, int gettimer) {
if (ci->count == 0 || !cell_is_active(ci, r->e)) return;
/* Recurse? */
if (ci->split) {
if (cell_can_recurse_in_pair_task(ci)) {
/* Loop over all progeny. */
for (int k = 0; k < 8; k++)
......@@ -2678,7 +2678,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
if (cj == NULL) {
/* Recurse? */
if (ci->split) {
if (cell_can_recurse_in_pair_task(ci)) {
/* Loop over all progeny. */
DOSUB_SUBSET(r, sub, parts, ind, count, NULL, -1, 0);
......
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