From b16c8fe8de5079d59cc54157060f56d21368c322 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 7 May 2019 21:53:07 +0200
Subject: [PATCH] Fixed mistake in the creation of black hole MPI tasks.

---
 src/engine_maketasks.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c
index 06ac95d6e8..201bc357d7 100644
--- a/src/engine_maketasks.c
+++ b/src/engine_maketasks.c
@@ -2468,7 +2468,8 @@ void engine_addtasks_recv_mapper(void *map_data, int num_elements,
 
     /* Add the recv tasks for the cells in the proxy that have a black holes
      * connection. */
-    if ((e->policy & engine_policy_feedback) && (type & proxy_cell_type_hydro))
+    if ((e->policy & engine_policy_black_holes) &&
+        (type & proxy_cell_type_hydro))
       engine_addtasks_recv_black_holes(e, ci, NULL, NULL);
 
     /* Add the recv tasks for the cells in the proxy that have a gravity
-- 
GitLab