diff --git a/src/space.c b/src/space.c index e80cc37190452013bdf4a29da7bd1ebae9fa2c2a..3f80edfb4a2db5f02b5dd1f40c4d8c514e34d728 100644 --- a/src/space.c +++ b/src/space.c @@ -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