From a86aa183ec7f9309cae0e80cd4636539603f899f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Sun, 4 Nov 2018 13:36:09 +0100 Subject: [PATCH] Correctly reset the splitting flag in space.c and cell.c --- src/cell.c | 1 + src/space.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/cell.c b/src/cell.c index c2e7ceada1..37b7be42f3 100644 --- a/src/cell.c +++ b/src/cell.c @@ -316,6 +316,7 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c, int count = 1; /* Fill the progeny recursively, depth-first. */ + c->split = 0; for (int k = 0; k < 8; k++) if (pc->progeny[k] >= 0) { struct cell *temp; diff --git a/src/space.c b/src/space.c index 5164236d57..068fd4cc0a 100644 --- a/src/space.c +++ b/src/space.c @@ -493,6 +493,7 @@ void space_regrid(struct space *s, int verbose) { c->width[2] = s->width[2]; c->dmin = dmin; c->depth = 0; + c->split = 0; c->hydro.count = 0; c->grav.count = 0; c->stars.count = 0; -- GitLab