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

Correctly reset the splitting flag in space.c and cell.c

parent e7d2480c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment