Skip to content
Snippets Groups Projects
Commit adc787bc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix a bug in the marktask. Can't call cell_is_active_stars() if we are running...

Fix a bug in the marktask. Can't call cell_is_active_stars() if we are running with MPI and ext potential.
parent b4f281d2
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment