From 5e7e8dd65f47c4bc26e5e34eae6dc0acbc7c3927 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Sun, 13 Oct 2019 13:56:36 +0100
Subject: [PATCH] Added missing dependencies for the time-step limiter

---
 src/engine_maketasks.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c
index 991f6b88d9..5912b077b6 100644
--- a/src/engine_maketasks.c
+++ b/src/engine_maketasks.c
@@ -1988,6 +1988,7 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
         scheduler_addunlock(sched, ci->hydro.super->hydro.drift, t_limiter);
         scheduler_addunlock(sched, t_limiter,
                             ci->hydro.super->hydro.limiter_out);
+	scheduler_addunlock(sched, t_limiter, ci->super->timestep_limiter);
 
         if (with_feedback) {
           scheduler_addunlock(sched, t_star_feedback, ci->super->timestep_sync);
@@ -2184,6 +2185,7 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
                               t_limiter);
           scheduler_addunlock(sched, t_limiter,
                               ci->hydro.super->hydro.limiter_out);
+	  scheduler_addunlock(sched, t_limiter, ci->super->timestep_limiter);
           if (with_feedback) {
             scheduler_addunlock(sched, t_star_feedback,
                                 ci->super->timestep_sync);
@@ -2277,6 +2279,7 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
               scheduler_addunlock(sched, t_star_feedback,
                                   cj->super->timestep_sync);
             }
+	    scheduler_addunlock(sched, t_limiter, cj->super->timestep_limiter);
           }
         }
 
@@ -2449,6 +2452,8 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
         scheduler_addunlock(sched, t_limiter,
                             ci->hydro.super->hydro.limiter_out);
 
+	scheduler_addunlock(sched, t_limiter, ci->super->timestep_limiter);
+
         if (with_feedback) {
           scheduler_addunlock(sched, t_star_feedback, ci->super->timestep_sync);
         }
@@ -2648,6 +2653,7 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
                               t_limiter);
           scheduler_addunlock(sched, t_limiter,
                               ci->hydro.super->hydro.limiter_out);
+	  scheduler_addunlock(sched, t_limiter, ci->super->timestep_limiter);
 
           if (with_feedback) {
             scheduler_addunlock(sched, t_star_feedback,
@@ -2746,6 +2752,8 @@ void engine_make_extra_hydroloop_tasks_mapper(void *map_data, int num_elements,
               scheduler_addunlock(sched, t_star_feedback,
                                   cj->super->timestep_sync);
             }
+
+	    scheduler_addunlock(sched, t_limiter, cj->super->timestep_limiter);
           }
         }
       } else /* cj->nodeID != nodeID */ {
-- 
GitLab