From adc787bc1e641cfaa1d0da3377030acabca012a2 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Tue, 20 Nov 2018 20:25:40 +0100 Subject: [PATCH] Fix a bug in the marktask. Can't call cell_is_active_stars() if we are running with MPI and ext potential. --- src/engine_marktasks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine_marktasks.c b/src/engine_marktasks.c index 2206a9b8ec..80fd0e335c 100644 --- a/src/engine_marktasks.c +++ b/src/engine_marktasks.c @@ -182,8 +182,10 @@ void engine_marktasks_mapper(void *map_data, int num_elements, const int cj_active_hydro = cell_is_active_hydro(cj, e); const int ci_active_gravity = cell_is_active_gravity(ci, e); const int cj_active_gravity = cell_is_active_gravity(cj, e); - const int ci_active_stars = cell_is_active_stars(ci, e); - const int cj_active_stars = cell_is_active_stars(cj, e); + + // MATTHIEU: This is broken here. In cases with ext-potential this crashes. + const int ci_active_stars = 0; // cell_is_active_stars(ci, e); + const int cj_active_stars = 0; // cell_is_active_stars(cj, e); /* Only activate tasks that involve a local active cell. */ if ((t_subtype == task_subtype_density || -- GitLab