From 4002cb53fb85d959ca84f797c481c7b317b1c560 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Wed, 21 Nov 2018 13:58:35 +0100
Subject: [PATCH] Reset the grav.drift_out task pointer in the top-level cells
 when rebuilding.

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

diff --git a/src/space.c b/src/space.c
index e2bb6249bd..82f369a501 100644
--- a/src/space.c
+++ b/src/space.c
@@ -206,6 +206,7 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
     c->end_force = NULL;
     c->hydro.drift = NULL;
     c->grav.drift = NULL;
+    c->grav.drift_out = NULL;
     c->hydro.cooling = NULL;
     c->sourceterms = NULL;
     c->grav.long_range = NULL;
-- 
GitLab