Commit e58c7743 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'initialisation_fix' into 'master'

Fix initialisation of particles

Hi Peter, 

That should fix it but breaks the MINIMAL_SPH case. I'll re-open the corresponding issue.

Thanks !

See merge request !179
parents 778c4cca e0baeadd
......@@ -2082,8 +2082,6 @@ void engine_init_particles(struct engine *e) {
if (e->nodeID == 0) message("Initialising particles");
engine_prepare(e);
/* Make sure all particles are ready to go */
/* i.e. clean-up any stupid state in the ICs */
if (e->policy & engine_policy_hydro) {
......@@ -2094,6 +2092,8 @@ void engine_init_particles(struct engine *e) {
space_map_cells_pre(s, 0, cell_init_gparts, NULL);
}
engine_prepare(e);
engine_marktasks(e);
/* Build the masks corresponding to the policy */
......
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