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

When doing two initialisation loops, also mark and skip the tasks in the second one.

parent e8778db6
......@@ -2598,7 +2598,11 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs) {
space_map_cells_pre(s, 0, cell_convert_hydro, NULL);
/* Correct what we did (e.g. in PE-SPH, need to recompute rho_bar) */
if (hydro_need_extra_init_loop) engine_launch(e, e->nr_threads);
if (hydro_need_extra_init_loop) {
engine_launch(e, e->nr_threads);
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