Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!276No task mask
...@@ -2598,7 +2598,11 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs) { ...@@ -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); space_map_cells_pre(s, 0, cell_convert_hydro, NULL);
/* Correct what we did (e.g. in PE-SPH, need to recompute rho_bar) */ /* 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_marktasks(e);
engine_skip_force_and_kick(e);
engine_launch(e, e->nr_threads);
}
} }
clocks_gettime(&time2); clocks_gettime(&time2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment