Commit ca879eaa authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

don't try to drift non-local cells.

parent c307406c
......@@ -1681,8 +1681,8 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
cj->dx_max_sort_old = cj->dx_max_sort;
/* Activate the drift tasks. */
cell_activate_drift_part(ci, s);
cell_activate_drift_part(cj, s);
if (ci->nodeID == engine_rank) cell_activate_drift_part(ci, s);
if (cj->nodeID == engine_rank) cell_activate_drift_part(cj, s);
/* Check the sorts and activate them if needed. */
cell_activate_sorts(ci, t->flags, s);
......
......@@ -2578,8 +2578,8 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
cj->dx_max_sort_old = cj->dx_max_sort;
/* Activate the drift tasks. */
cell_activate_drift_part(ci, s);
cell_activate_drift_part(cj, s);
if (ci->nodeID == engine_rank) cell_activate_drift_part(ci, s);
if (cj->nodeID == engine_rank) cell_activate_drift_part(cj, s);
/* Activate the sorts where needed. */
cell_activate_sorts(ci, t->flags, s);
......
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