diff --git a/src/cell.c b/src/cell.c index c2e7ceada1ca86cbab1c80549b14482113c8477d..37b7be42f3aa04d79496d2913d30654af93ea45e 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 5164236d5730e4119ad0f17ca5982dafd49c9a2d..068fd4cc0a9218e3fdd2df48264a9ea5e2daa76a 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;