From 9494229286f448dcbf8c77a115f9dfcb56daa5cc Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Fri, 1 Feb 2019 19:06:07 +0100
Subject: [PATCH] started length limitation

---
 Environment/LinearIntegrator.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Environment/LinearIntegrator.h b/Environment/LinearIntegrator.h
index d1ee5d5e..5dddc1eb 100644
--- a/Environment/LinearIntegrator.h
+++ b/Environment/LinearIntegrator.h
@@ -39,6 +39,14 @@ namespace corsika::environment {
 
       return (1 - 0.5 * grammage * c1 / (c0 * c0)) * grammage / c0;
     }
+    
+    auto MaximumLength(double relError) const {
+        auto const c1 = GetImplementation().fRho.SecondDerivative(
+          line.GetPosition(0), line.NormalizedDirection());
+          
+        // todo: finish
+        return 100_m;
+    }
   };
 } // namespace corsika::environment
 
-- 
GitLab