Commit cc546377 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only create the stars ghost task when running with feedback switched on.

parent 086cf4bd
......@@ -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. */
......
Supports Markdown
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