From ba46ebd7fc6a8e6f3278dd94e2632d2133644eaf Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sun, 9 Sep 2018 17:55:46 +0200
Subject: [PATCH] No need to initialise the gravity tensors when getting a
 cell. This happens later on.

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

diff --git a/src/space.c b/src/space.c
index c3d079bf62..11fc5c9422 100644
--- a/src/space.c
+++ b/src/space.c
@@ -2311,7 +2311,6 @@ void space_getcells(struct space *s, int nr_cells, struct cell **cells) {
       if (cells[j]->sort[k] != NULL) free(cells[j]->sort[k]);
     struct gravity_tensors *temp = cells[j]->multipole;
     bzero(cells[j], sizeof(struct cell));
-    bzero(temp, sizeof(struct gravity_tensors));
     cells[j]->multipole = temp;
     cells[j]->nodeID = -1;
     if (lock_init(&cells[j]->lock) != 0 || lock_init(&cells[j]->glock) != 0 ||
-- 
GitLab