From 2fb73a109e5b67ab41a4b27e59d0ebdcb2d3b975 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 23 Feb 2019 14:52:44 +0100
Subject: [PATCH] Update the stars' ti_old_part when receiving stars, not the
 gravity one.

---
 src/runner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runner.c b/src/runner.c
index ee28fd8a2c..b07d8cd546 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -3016,7 +3016,7 @@ void runner_do_recv_spart(struct runner *r, struct cell *c, int clear_sorts,
   /* ... and store. */
   // c->grav.ti_end_min = ti_gravity_end_min;
   // c->grav.ti_end_max = ti_gravity_end_max;
-  c->grav.ti_old_part = ti_current;
+  c->stars.ti_old_part = ti_current;
   c->stars.h_max = h_max;
 
   if (timer) TIMER_TOC(timer_dorecv_spart);
-- 
GitLab