From 91a5af99177084b0259732524511425ea185c33d Mon Sep 17 00:00:00 2001
From: Nikos Karastathis <n.karastathis@kit.edu>
Date: Tue, 2 Nov 2021 14:29:25 +0100
Subject: [PATCH] Renamed class members.

---
 corsika/detail/media/ExponentialRefractiveIndex.inl | 12 ++++++------
 corsika/media/ExponentialRefractiveIndex.hpp        | 10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/corsika/detail/media/ExponentialRefractiveIndex.inl b/corsika/detail/media/ExponentialRefractiveIndex.inl
index 675531eb8..0c22d2e00 100644
--- a/corsika/detail/media/ExponentialRefractiveIndex.inl
+++ b/corsika/detail/media/ExponentialRefractiveIndex.inl
@@ -15,16 +15,16 @@ namespace corsika {
   template <typename T>
   template <typename... Args>
   ExponentialRefractiveIndex<T>::ExponentialRefractiveIndex(
-      double const n0, InverseLengthType const lambda_, Point const center_, LengthType const planetRadius_, Args&&... args)
+      double const n0, InverseLengthType const lambda, Point const center, LengthType const radius, Args&&... args)
       : T(std::forward<Args>(args)...)
-      , n_0(n0)
-      , lambda(lambda_)
-      , center(center_)
-      , planetRadius(planetRadius_) {}
+      , n0_(n0)
+      , lambda_(lambda)
+      , center_(center)
+      , radius_(radius) {}
 
   template <typename T>
   double ExponentialRefractiveIndex<T>::getRefractiveIndex(Point const& point) const {
-    return n_0 * exp((-lambda) * (distance(point, center) - planetRadius));
+    return n0_ * exp((-lambda_) * (distance(point, center_) - radius_));
   }
 
 } // namespace corsika
diff --git a/corsika/media/ExponentialRefractiveIndex.hpp b/corsika/media/ExponentialRefractiveIndex.hpp
index eb41fde24..862d4131a 100644
--- a/corsika/media/ExponentialRefractiveIndex.hpp
+++ b/corsika/media/ExponentialRefractiveIndex.hpp
@@ -22,10 +22,10 @@ namespace corsika {
   template <typename T>
   class ExponentialRefractiveIndex : public T {
 
-    double n_0;                ///< n0 constant.
-    InverseLengthType lambda;  ///< lambda parameter.
-    LengthType planetRadius;   ///< the planet radius.
-    Point center;              ///< center of the planet.
+    double n0_;                ///< n0 constant.
+    InverseLengthType lambda_;  ///< lambda parameter.
+    LengthType radius_;   ///< the planet radius.
+    Point center_;              ///< center of the planet.
 
   public:
     /**
@@ -38,7 +38,7 @@ namespace corsika {
      * @param field    The refractive index to return to a given point.
      */
     template <typename... Args>
-    ExponentialRefractiveIndex(double const n0, InverseLengthType const lambda_, Point const center_, LengthType const planetRadius_,
+    ExponentialRefractiveIndex(double const n0, InverseLengthType const lambda, Point const center, LengthType const radius,
                                Args&&... args);
 
     /**
-- 
GitLab