From 0f54630c996d2c32531c8e860da0936bac83822d Mon Sep 17 00:00:00 2001
From: Jean-Marco Alameddine <jean-marco.alameddine@tu-dortmund.de>
Date: Fri, 5 May 2023 15:26:04 +0200
Subject: [PATCH] Fix condition for throwing error message due to negative
 times in Intersect.inl

---
 corsika/detail/modules/tracking/Intersect.inl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corsika/detail/modules/tracking/Intersect.inl b/corsika/detail/modules/tracking/Intersect.inl
index b81cbf5c2..1049534ea 100644
--- a/corsika/detail/modules/tracking/Intersect.inl
+++ b/corsika/detail/modules/tracking/Intersect.inl
@@ -106,7 +106,7 @@ namespace corsika {
     CORSIKA_LOG_DEBUG("next time-intersect: {}, node {} ", minTime, fmt::ptr(minNode));
     // this branch cannot be unit-testes. This is malfunction: LCOV_EXCL_START
     if (minTime < 0_s) {
-      if (minTime < 1e-8_s) {
+      if (minTime < -1e-8_s) {
         CORSIKA_LOG_ERROR(
             "There is a very negative time step detected: {}. This is not physical and "
             "may "
-- 
GitLab