From ca879eaaad5816d12dd6ff9604c05e28ed7c69fc Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Tue, 27 Jun 2017 21:19:38 +0200 Subject: [PATCH] don't try to drift non-local cells. --- src/cell.c | 4 ++-- src/engine.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cell.c b/src/cell.c index 9b1ab4f50f..47e4f8bcaf 100644 --- a/src/cell.c +++ b/src/cell.c @@ -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); diff --git a/src/engine.c b/src/engine.c index 441b09f44e..8bc40f293e 100644 --- a/src/engine.c +++ b/src/engine.c @@ -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); -- GitLab