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

Cleaner breacketing in the pair-task creation.

parent 5fb5e802
No related branches found
No related tags found
1 merge request!673Reduce the number of proxies constructed in the case with gravity
......@@ -804,9 +804,10 @@ void engine_make_self_gravity_tasks_mapper(void *map_data, int num_elements,
if (ci->grav.count == 0) continue;
/* If the cell is local build a self-interaction */
if (ci->nodeID == nodeID)
if (ci->nodeID == nodeID) {
scheduler_addtask(sched, task_type_self, task_subtype_grav, 0, 0, ci,
NULL);
}
/* Loop over every other cell within (Manhattan) range delta */
for (int ii = -delta_m; ii <= delta_p; ii++) {
......@@ -1763,9 +1764,10 @@ void engine_make_hydroloop_tasks_mapper(void *map_data, int num_elements,
if (ci->hydro.count == 0) continue;
/* If the cell is local build a self-interaction */
if (ci->nodeID == nodeID)
if (ci->nodeID == nodeID) {
scheduler_addtask(sched, task_type_self, task_subtype_density, 0, 0, ci,
NULL);
}
/* Now loop over all the neighbours of this cell */
for (int ii = -1; ii < 2; ii++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment