From 0a1f897fc70f5769e79fea11e8805e4597a894cc Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Thu, 10 Oct 2019 18:00:02 +0200
Subject: [PATCH] Print more information in the check for limited particles.

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

diff --git a/src/space.c b/src/space.c
index 285b059be4..bcd9d49dab 100644
--- a/src/space.c
+++ b/src/space.c
@@ -5297,7 +5297,9 @@ void space_check_limiter_mapper(void *map_data, int nr_parts,
     if (parts[k].wakeup == time_bin_awake)
       error("Particle still woken up! id=%lld", parts[k].id);
 
-    if (parts[k].synchronized != 0) error("Synchronized particle not treated!");
+    if (parts[k].synchronized != 0)
+      error("Synchronized particle not treated! synchronized=%d",
+            parts[k].synchronized);
 
     if (parts[k].gpart != NULL)
       if (parts[k].time_bin != parts[k].gpart->time_bin)
-- 
GitLab