From 6779939ab9d9f8bf25aeab1a4cfab68a6e3c7bcf Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Wed, 30 Oct 2019 19:32:00 +0100 Subject: [PATCH] Add dependency between the synchronization and limiter task. --- src/engine_maketasks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index 8e9f81b40d..8ad1178d0c 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -870,6 +870,10 @@ void engine_make_hierarchical_tasks_common(struct engine *e, struct cell *c) { scheduler_addunlock(s, c->timestep, c->timestep_sync); scheduler_addunlock(s, c->timestep_sync, c->kick1); } + + if (with_timestep_limiter && with_timestep_sync) { + scheduler_addunlock(s, c->timestep_limiter, c->timestep_sync); + } } } else { /* We are above the super-cell so need to go deeper */ -- GitLab