From acbb03719eff71d44a1019522446bc5ab6ac979e Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Tue, 27 Sep 2016 17:11:02 +0100 Subject: [PATCH] Zero the new task pointers when rebuilding --- src/space.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/space.c b/src/space.c index 1d2733ab2d..7169e09d0b 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]; } -- GitLab