From 68425b66e168833b7d9988d4426274d167192c3f Mon Sep 17 00:00:00 2001
From: Nikos Karastathis <n.karastathis@kit.edu>
Date: Mon, 23 Jan 2023 13:30:59 +0100
Subject: [PATCH] earth's surface point does not need to be stored

---
 corsika/detail/media/GladstoneDaleRefractiveIndex.inl | 4 +---
 corsika/media/GladstoneDaleRefractiveIndex.hpp        | 2 --
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/corsika/detail/media/GladstoneDaleRefractiveIndex.inl b/corsika/detail/media/GladstoneDaleRefractiveIndex.inl
index d0a13a981..e86cbd00e 100644
--- a/corsika/detail/media/GladstoneDaleRefractiveIndex.inl
+++ b/corsika/detail/media/GladstoneDaleRefractiveIndex.inl
@@ -18,9 +18,7 @@ namespace corsika {
                                                                        Point const point, Args&&... args)
       : T(std::forward<Args>(args)...)
       , seaLevelRefractiveIndex_(seaLevelRefractiveIndex)
-      , earthSurface_(point)
-      , seaLevelDensity_(this->getMassDensity(earthSurface_)) {}
-//      , ratio_((1. - seaLevelRefractiveIndex_) / (seaLevelDensity_ * cube(1_m) / 1_kg)) {}
+      , seaLevelDensity_(this->getMassDensity(point)) {}
 
   template <typename T>
   inline double GladstoneDaleRefractiveIndex<T>::getRefractiveIndex(Point const& point) const {
diff --git a/corsika/media/GladstoneDaleRefractiveIndex.hpp b/corsika/media/GladstoneDaleRefractiveIndex.hpp
index 49a1b504c..a530f3850 100644
--- a/corsika/media/GladstoneDaleRefractiveIndex.hpp
+++ b/corsika/media/GladstoneDaleRefractiveIndex.hpp
@@ -22,9 +22,7 @@ namespace corsika {
   class GladstoneDaleRefractiveIndex final : public T {
 
     double const seaLevelRefractiveIndex_; ///< The constant refractive index at sea level.
-    Point const earthSurface_; ///< A point at earth's surface.
     MassDensityType const seaLevelDensity_; ///< The constant mass density at sea level.
-//    MassDensityType ratio_; ///< (1 - seaLevelRefractiveIndex_) / seaLevelDensity_.
 
   public:
     /**
-- 
GitLab