Commit acbb0371 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Zero the new task pointers when rebuilding

parent d5191f16
...@@ -398,6 +398,9 @@ void space_regrid(struct space *s, double cell_max, int verbose) { ...@@ -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].extra_ghost = NULL;
s->cells_top[k].ghost = NULL; s->cells_top[k].ghost = NULL;
s->cells_top[k].kick = 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].super = &s->cells_top[k];
s->cells_top[k].gsuper = &s->cells_top[k]; s->cells_top[k].gsuper = &s->cells_top[k];
} }
......
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