Skip to content
Snippets Groups Projects
Commit c84b371d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Assign the correct depth to the newly born stars

parent 3dfd19b3
No related branches found
No related tags found
1 merge request!1353Draft: Subtask speedup - Still requires work
...@@ -268,6 +268,9 @@ struct spart *cell_add_spart(struct engine *e, struct cell *const c) { ...@@ -268,6 +268,9 @@ struct spart *cell_add_spart(struct engine *e, struct cell *const c) {
const size_t one = 1; const size_t one = 1;
atomic_sub(&e->s->nr_extra_sparts, one); atomic_sub(&e->s->nr_extra_sparts, one);
/* Give the new particle the correct depth */
cell_set_spart_h_depth(sp, c);
return sp; return sp;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment