From 9ea457e518db36ebafd4d82c73cf3dae2842eaf7 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sat, 30 Mar 2019 14:08:30 +0100 Subject: [PATCH] Only check that the cells at or below the super pointer have been drifted. No drift occurs above so checking is a bad idea. --- src/cell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cell.c b/src/cell.c index 7af65976ce..775df65df5 100644 --- a/src/cell.c +++ b/src/cell.c @@ -4458,7 +4458,8 @@ struct spart *cell_add_spart(struct engine *e, struct cell *const c) { /* Check that the cell was indeed drifted to this point to avoid future * issues */ #ifdef SWIFT_DEBUG_CHECKS - if (top->stars.count > 0 && top->stars.ti_old_part != e->ti_current) { + if (top->hydro.super != NULL && top->stars.count > 0 && + top->stars.ti_old_part != e->ti_current) { error("Cell had not been correctly drifted before star formation"); } #endif -- GitLab