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

When sorting the stars after having formed a star, only do so for the active cells.

parent 23c14b33
No related branches found
No related tags found
No related merge requests found
...@@ -1301,6 +1301,8 @@ void runner_do_all_stars_sort(struct runner *r, struct cell *c) { ...@@ -1301,6 +1301,8 @@ void runner_do_all_stars_sort(struct runner *r, struct cell *c) {
if (c->nodeID != engine_rank) error("Function called on a foreign cell!"); if (c->nodeID != engine_rank) error("Function called on a foreign cell!");
#endif #endif
if(!cell_is_active_stars(c, r->e) && !cell_is_active_hydro(c, r->e)) return;
/* Shall we sort at this level? */ /* Shall we sort at this level? */
if (c->hydro.super == c) { if (c->hydro.super == c) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment