From ed95c5c9f95bc266963fd0b82174b21e88a9a4b4 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Fri, 21 Sep 2018 15:55:01 +0200
Subject: [PATCH] Do not collect time-step information from inhibited
 particles.

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

diff --git a/src/runner.c b/src/runner.c
index 0e76092d2f..bc6bc4f738 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -1933,7 +1933,8 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) {
         /* What is the next starting point for this cell ? */
         ti_gravity_beg_max = max(ti_current, ti_gravity_beg_max);
 
-      } else { /* stars particle is inactive */
+        /* star particle is inactive but not inhibited */
+      } else if (!spart_is_inhibited(sp, e)) {
 
         const integertime_t ti_end =
             get_integer_time_end(ti_current, sp->time_bin);
-- 
GitLab