From d16f58cb3e2d16addc0e266fca52b76f8fe05848 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 7 Mar 2019 18:20:01 +0100 Subject: [PATCH] Correct the condition to escape the creation of hydro tasks in the absence of feedabck in the make_hydroloop() function. --- src/engine_maketasks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index 6340cb17eb..d1858f87ff 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -2066,7 +2066,7 @@ void engine_make_hydroloop_tasks_mapper(void *map_data, int num_elements, struct cell *ci = &cells[cid]; /* Skip cells without hydro or star particles */ - if ((ci->hydro.count == 0) && (with_feedback && ci->stars.count == 0)) + if ((ci->hydro.count == 0) && (!with_feedback || ci->stars.count == 0)) continue; /* If the cell is local build a self-interaction */ @@ -2096,7 +2096,7 @@ void engine_make_hydroloop_tasks_mapper(void *map_data, int num_elements, /* Is that neighbour local and does it have gas or star particles ? */ if ((cid >= cjd) || ((cj->hydro.count == 0) && - (with_feedback && cj->stars.count == 0)) || + (!with_feedback || cj->stars.count == 0)) || (ci->nodeID != nodeID && cj->nodeID != nodeID)) continue; -- GitLab