Commit fd721632 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

initialize the cell tags to -1.

parent e11cd688
......@@ -205,6 +205,8 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
c->sort[i] = NULL;
}
#if WITH_MPI
c->tag = -1;
c->recv_xv = NULL;
c->recv_rho = NULL;
c->recv_gradient = NULL;
......@@ -418,6 +420,9 @@ void space_regrid(struct space *s, int verbose) {
c->ti_old_part = ti_old;
c->ti_old_gpart = ti_old;
c->ti_old_multipole = ti_old;
#ifdef WITH_MPI
c->tag = -1;
#endif // WITH_MPI
if (s->gravity) c->multipole = &s->multipoles_top[cid];
}
......@@ -1825,6 +1830,9 @@ void space_split_recursive(struct space *s, struct cell *c,
cp->super = NULL;
cp->super_hydro = NULL;
cp->super_gravity = NULL;
#ifdef WITH_MPI
cp->tag = -1;
#endif // WITH_MPI
#ifdef SWIFT_DEBUG_CHECKS
cp->cellID = last_cell_id++;
#endif
......
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