Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!745Rewrite of MPI loops - Add stellar feedback loops,!744Mpi stars2 matthieu
...@@ -935,8 +935,10 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c) { ...@@ -935,8 +935,10 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c) {
/* implicit = */ 1, c, NULL); /* implicit = */ 1, c, NULL);
engine_add_ghosts(e, c, c->hydro.ghost_in, c->hydro.ghost_out); engine_add_ghosts(e, c, c->hydro.ghost_in, c->hydro.ghost_out);
c->stars.ghost = scheduler_addtask(s, task_type_stars_ghost, if (with_feedback) {
task_subtype_none, 0, 0, c, NULL); c->stars.ghost = scheduler_addtask(s, task_type_stars_ghost,
task_subtype_none, 0, 0, c, NULL);
}
#ifdef EXTRA_HYDRO_LOOP #ifdef EXTRA_HYDRO_LOOP
/* Generate the extra ghost task. */ /* Generate the extra ghost task. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment