Commit d92cb31d authored by Matthieu Schaller's avatar Matthieu Schaller

Do not activate the FFT task in situations where it should not exist

parent 28123d7d
......@@ -3480,7 +3480,8 @@ void engine_unskip(struct engine *e) {
e->s->nr_cells, sizeof(struct cell), 1, e);
/* And the top level gravity FFT one */
if (e->s->periodic) scheduler_activate(&e->sched, e->s->grav_top_level);
if (e->s->periodic && (e->policy & engine_policy_self_gravity))
scheduler_activate(&e->sched, e->s->grav_top_level);
if (e->verbose)
message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment