diff --git a/src/runner.c b/src/runner.c index 6f031ded7252537ea37f564634daa89b7eebda30..b6be2abc051b94a7c2c4df6b2e9519dba7594658 100644 --- a/src/runner.c +++ b/src/runner.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!"); #endif + if(!cell_is_active_stars(c, r->e) && !cell_is_active_hydro(c, r->e)) return; + /* Shall we sort at this level? */ if (c->hydro.super == c) {