From e90dd24b548483e9c946a25f063541805227fd17 Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Tue, 18 Oct 2016 16:34:33 +0100
Subject: [PATCH] Need to also init the gravity links

---
 src/space.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/space.c b/src/space.c
index 432f26621d..86c8cc36ea 100644
--- a/src/space.c
+++ b/src/space.c
@@ -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].gradient = 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].sorted = 0;
       s->cells_top[k].count = 0;
-- 
GitLab