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

Link the gravity M-M tasks to their cells.

parent aa6fb2c6
No related branches found
No related tags found
1 merge request!576Gravity splittask (non-MPI)
......@@ -2637,6 +2637,13 @@ void engine_count_and_link_tasks_mapper(void *map_data, int num_elements,
if (t->subtype == task_subtype_external_grav) {
error("Found a sub-pair/external-gravity task...");
}
/* Link M-M tasks to cells */
} else if (t->type == task_type_grav_mm) {
atomic_inc(&ci->nr_tasks);
atomic_inc(&cj->nr_tasks);
engine_addlink(e, &ci->grav, t);
engine_addlink(e, &cj->grav, t);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment