From a47112ee2ecf2be21a7657ba9d65911e1396baa1 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Mon, 12 Aug 2019 13:40:00 +0200 Subject: [PATCH] The star formation task should active the resort flag of its children. --- src/runner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runner.c b/src/runner.c index b7d9678dc2..48cdce8010 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1215,6 +1215,11 @@ void runner_do_star_formation(struct runner *r, struct cell *c, int timer) { if (with_feedback && (c == c->top) && (current_stars_count != c->stars.count)) { cell_set_flag(c, cell_flag_do_stars_resort); + if (c->split) { + for (int k = 0; k < 8; ++k) + if (c->progeny[k] != NULL) + cell_set_flag(c->progeny[k], cell_flag_do_stars_resort); + } cell_clear_stars_sort_flags(c, /*clear_unused_flags=*/0); } @@ -1235,7 +1240,6 @@ void runner_do_stars_resort(struct runner *r, struct cell *c, const int timer) { #ifdef SWIFT_DEBUG_CHECKS if (c->nodeID != r->e->nodeID) error("Task must be run locally!"); - if (c->hydro.super != c) error("Task must be run at the super-level"); #endif TIMER_TIC; -- GitLab