From 2abc9ff9643480bd82ed93b7f30ef5ec4223b49b Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Tue, 27 Jun 2017 23:36:41 +0200 Subject: [PATCH] only need to explicitly activate drifts on cell being sent. --- src/engine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine.c b/src/engine.c index 36de23c815..2c99559bb7 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2625,9 +2625,9 @@ void engine_marktasks_mapper(void *map_data, int num_elements, if (l == NULL) error("Missing link to send_xv task."); scheduler_activate(s, l->t); - /* Drift both cells, the foreign one at the level which it is sent. */ + /* Drift the cell which will be sent at the level at which it is sent, + i.e. drift the cell specified in the send task (l->t) itself. */ cell_activate_drift_part(l->t->ci, s); - if (t->type == task_type_pair) cell_activate_drift_part(cj, s); if (cell_is_active(cj, e)) { for (l = cj->send_rho; l != NULL && l->t->cj->nodeID != ci->nodeID; @@ -2671,9 +2671,9 @@ void engine_marktasks_mapper(void *map_data, int num_elements, if (l == NULL) error("Missing link to send_xv task."); scheduler_activate(s, l->t); - /* Drift both cells, the foreign one at the level which it is sent. */ + /* Drift the cell which will be sent at the level at which it is sent, + i.e. drift the cell specified in the send task (l->t) itself. */ cell_activate_drift_part(l->t->ci, s); - if (t->type == task_type_pair) cell_activate_drift_part(ci, s); if (cell_is_active(ci, e)) { for (l = ci->send_rho; l != NULL && l->t->cj->nodeID != cj->nodeID; -- GitLab