diff --git a/src/space.c b/src/space.c index 1d2733ab2d4356c19cc0e65a0b9441edcf0acb80..7169e09d0bac5b12352f2405966eb49ec6acde84 100644 --- a/src/space.c +++ b/src/space.c @@ -398,6 +398,9 @@ void space_regrid(struct space *s, double cell_max, int verbose) { s->cells_top[k].extra_ghost = NULL; s->cells_top[k].ghost = NULL; s->cells_top[k].kick = NULL; + s->cells_top[k].grav_external = NULL; + s->cells_top[k].cooling = NULL; + s->cells_top[k].sourceterms = NULL; s->cells_top[k].super = &s->cells_top[k]; s->cells_top[k].gsuper = &s->cells_top[k]; }