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

Fixed the debugging checks in runner_do_recv_spart() to also be valid for the...

Fixed the debugging checks in runner_do_recv_spart() to also be valid for the case with star formation.
parent b778d7bf
No related branches found
No related tags found
1 merge request!805Communication tasks for on-the-fly star formation
......@@ -3840,7 +3840,8 @@ void runner_do_recv_spart(struct runner *r, struct cell *c, int clear_sorts,
}
#ifdef SWIFT_DEBUG_CHECKS
if (ti_stars_end_min < ti_current)
if (ti_stars_end_min < ti_current &&
!(e->policy & engine_policy_star_formation))
error(
"Received a cell at an incorrect time c->ti_end_min=%lld, "
"e->ti_current=%lld.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment