From 0f41272f5ea9fdb2ee942c3dbf8750c82a6dfbcf Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Sun, 5 May 2019 14:31:44 +0100 Subject: [PATCH] Fixed the debugging checks in runner_do_recv_spart() to also be valid for the case with star formation. --- src/runner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner.c b/src/runner.c index 295f92b698..858c024de1 100644 --- a/src/runner.c +++ b/src/runner.c @@ -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.", -- GitLab