From 27097ab67da67d79077e94a2a1ad6e91d8fbd6fa Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 5 Nov 2019 16:59:25 +0100
Subject: [PATCH] Only check the calculation of the minimal neighbour time-bin
 if we are not using vectorization. This feature is not used in the Gadget-SPH
 SIMD code.

---
 src/timestep_limiter.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/timestep_limiter.h b/src/timestep_limiter.h
index 0d6bc1bd61..7c4bf6b9e0 100644
--- a/src/timestep_limiter.h
+++ b/src/timestep_limiter.h
@@ -46,8 +46,10 @@ timestep_limiter_prepare_force(struct part *restrict p,
 __attribute__((always_inline)) INLINE static void timestep_limiter_end_force(
     struct part *restrict p) {
 #ifdef SWIFT_DEBUG_CHECKS
+#ifndef WITH_VECTORIZATION
   if (p->time_bin > 0 && p->limiter_data.min_ngb_time_bin == num_time_bins + 1)
     error("Minimal time-bin not computed!");
+#endif
   if (p->limiter_data.min_ngb_time_bin == 0)
     error("Minimal time-bin of neighbours is 0");
 #endif
-- 
GitLab