From 543b5234d04319cb3645071eef3afcb64daafd0a Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Mon, 27 Feb 2017 18:16:23 +0000
Subject: [PATCH] Also compute time-step information from s-particles when
 rebuilding

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

diff --git a/src/space.c b/src/space.c
index cfd56b22b9..78a915839c 100644
--- a/src/space.c
+++ b/src/space.c
@@ -2160,8 +2160,11 @@ void space_split_recursive(struct space *s, struct cell *c,
       struct spart *sp = &sparts[k];
       const integertime_t ti_end =
           get_integer_time_end(e->ti_current, sp->time_bin);
+      const integertime_t ti_beg =
+          get_integer_time_begin(e->ti_current + 1, sp->time_bin);
       if (ti_end < ti_end_min) ti_end_min = ti_end;
       if (ti_end > ti_end_max) ti_end_max = ti_end;
+      if (ti_beg > ti_beg_max) ti_beg_max = ti_beg;
     }
 
     /* Construct the multipole and the centre of mass*/
-- 
GitLab