Commit e90dd24b authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Need to also init the gravity links

parent 6796bc8a
...@@ -399,6 +399,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) { ...@@ -399,6 +399,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
s->cells_top[k].density = NULL; s->cells_top[k].density = NULL;
s->cells_top[k].gradient = NULL; s->cells_top[k].gradient = NULL;
s->cells_top[k].force = NULL; s->cells_top[k].force = NULL;
s->cells_top[k].grav = NULL;
s->cells_top[k].dx_max = 0.0f; s->cells_top[k].dx_max = 0.0f;
s->cells_top[k].sorted = 0; s->cells_top[k].sorted = 0;
s->cells_top[k].count = 0; s->cells_top[k].count = 0;
......
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