Commit 245ae7e3 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

don't activate drifts for sub-cell tasks.

parent c6e81164
......@@ -1310,7 +1310,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
scheduler_activate(s, l->t->ci->drift);
else
error("Drift task missing !");
scheduler_activate(s, cj->drift);
if (t->type == task_type_pair) scheduler_activate(s, cj->drift);
if (cell_is_active(cj, e)) {
for (l = cj->send_rho; l != NULL && l->t->cj->nodeID != ci->nodeID;
......@@ -1348,7 +1348,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
scheduler_activate(s, l->t->ci->drift);
else
error("Drift task missing !");
scheduler_activate(s, ci->drift);
if (t->type == task_type_pair) scheduler_activate(s, ci->drift);
if (cell_is_active(ci, e)) {
for (l = ci->send_rho; l != NULL && l->t->cj->nodeID != cj->nodeID;
......
......@@ -2533,7 +2533,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
scheduler_activate(s, l->t->ci->drift);
else
error("Drift task missing !");
scheduler_activate(s, cj->drift);
if (t->type == task_type_pair) scheduler_activate(s, cj->drift);
if (cell_is_active(cj, e)) {
for (l = cj->send_rho; l != NULL && l->t->cj->nodeID != ci->nodeID;
......@@ -2571,7 +2571,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
scheduler_activate(s, l->t->ci->drift);
else
error("Drift task missing !");
scheduler_activate(s, ci->drift);
if (t->type == task_type_pair) scheduler_activate(s, ci->drift);
if (cell_is_active(ci, e)) {
for (l = ci->send_rho; l != NULL && l->t->cj->nodeID != cj->nodeID;
......
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