Commit 6dbca400 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Communicate the maximal depth of the tree when exchanging cells at rebuild time.

parent cc8f33ae
......@@ -190,6 +190,7 @@ int cell_pack(struct cell *restrict c, struct pcell *restrict pc,
pc->hydro.count = c->hydro.count;
pc->grav.count = c->grav.count;
pc->stars.count = c->stars.count;
pc->maxdepth = c->maxdepth;
/* Copy the Multipole related information */
if (with_gravity) {
......@@ -292,6 +293,8 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
c->hydro.count = pc->hydro.count;
c->grav.count = pc->grav.count;
c->stars.count = pc->stars.count;
c->maxdepth = pc->maxdepth;
#ifdef SWIFT_DEBUG_CHECKS
c->cellID = pc->cellID;
#endif
......
......@@ -149,6 +149,9 @@ struct pcell {
} stars;
/*! Maximal depth in that part of the tree */
int maxdepth;
/*! Relative indices of the cell's progeny. */
int progeny[8];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment