From cc5463773b15c3569c1d46fbd59b393e5c48a55d Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sat, 16 Feb 2019 23:39:58 +0100 Subject: [PATCH] Only create the stars ghost task when running with feedback switched on. --- src/engine_maketasks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index 2b3697350a..4ef5335401 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -935,8 +935,10 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c) { /* implicit = */ 1, c, NULL); engine_add_ghosts(e, c, c->hydro.ghost_in, c->hydro.ghost_out); - c->stars.ghost = scheduler_addtask(s, task_type_stars_ghost, - task_subtype_none, 0, 0, c, NULL); + if (with_feedback) { + c->stars.ghost = scheduler_addtask(s, task_type_stars_ghost, + task_subtype_none, 0, 0, c, NULL); + } #ifdef EXTRA_HYDRO_LOOP /* Generate the extra ghost task. */ -- GitLab