From e1f9e25ff024ef450490614f893801bbe72232f2 Mon Sep 17 00:00:00 2001
From: Alice Faure <alice.faure@umontpellier.fr>
Date: Fri, 20 Sep 2024 10:52:49 +0200
Subject: [PATCH] Remove final check on nodes

---
 corsika/detail/framework/core/Cascade.inl | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/corsika/detail/framework/core/Cascade.inl b/corsika/detail/framework/core/Cascade.inl
index 63ccdd7dd..6a1012e1b 100644
--- a/corsika/detail/framework/core/Cascade.inl
+++ b/corsika/detail/framework/core/Cascade.inl
@@ -296,22 +296,6 @@ namespace corsika {
 
       CORSIKA_LOG_DEBUG("step limit reached (e.g. deflection). nothing further happens.");
 
-      // final sanity check, no actions
-      {
-        auto const* numericalNodeAfterStep =
-            environment_.getUniverse()->getContainingNode(particle.getPosition());
-        CORSIKA_LOG_TRACE(
-            "Geometry check: numericalNodeAfterStep={} currentLogicalNode={}",
-            fmt::ptr(numericalNodeAfterStep), fmt::ptr(currentLogicalNode));
-        if (numericalNodeAfterStep != currentLogicalNode) {
-          CORSIKA_LOG_ERROR(
-              "expect to be in node currentLogicalNode={} but are in "
-              "numericalNodeAfterStep={}. Continue, but without guarantee.",
-              fmt::ptr(currentLogicalNode), fmt::ptr(numericalNodeAfterStep));
-        }
-      }
-      // we did not cross any volume boundary
-
       // step length limit
       return;
     }
-- 
GitLab