From 54a5abf5c5b3c6819ed9000261c3f5b9bf7b053a Mon Sep 17 00:00:00 2001
From: Nikos Karastathis <n.karastathis@kit.edu>
Date: Thu, 4 Feb 2021 22:07:58 +0100
Subject: [PATCH] changed time_ to total_time_ in SignalPath.hpp

---
 corsika/modules/radio/propagators/SignalPath.hpp | 6 +++---
 tests/modules/testRadio.cpp                      | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/corsika/modules/radio/propagators/SignalPath.hpp b/corsika/modules/radio/propagators/SignalPath.hpp
index 76157d899..20c1fd69a 100644
--- a/corsika/modules/radio/propagators/SignalPath.hpp
+++ b/corsika/modules/radio/propagators/SignalPath.hpp
@@ -22,7 +22,7 @@ namespace corsika {
 
     using path = std::deque<Point>;
 
-    TimeType const time_;    ///< The total propagation time.
+    TimeType const total_time_;    ///< The total propagation time.
     double const average_refractivity_; ///< The average refractivity.
     Vector<dimensionless_d> const emit_;    ///< The (unit-length) emission vector.
     Vector<dimensionless_d> const receive_; ///< The (unit-length) receive vector.
@@ -31,11 +31,11 @@ namespace corsika {
     /**
      * Create a new SignalPath instance.
      */
-    SignalPath(TimeType const time, double const average_refractivity,
+    SignalPath(TimeType const total_time, double const average_refractivity,
                Vector<dimensionless_d> const emit, Vector<dimensionless_d> const receive,
                path const& points)
         : Path(points)
-        , time_(time)
+        , total_time_(total_time)
         , average_refractivity_(average_refractivity)
         , emit_(emit)
         , receive_(receive) {}
diff --git a/tests/modules/testRadio.cpp b/tests/modules/testRadio.cpp
index 7b7321e86..6a61dc18f 100644
--- a/tests/modules/testRadio.cpp
+++ b/tests/modules/testRadio.cpp
@@ -131,7 +131,7 @@ TEST_CASE("Radio", "[processes]") {
 
     // perform checks to paths_ components
     for (auto const& path : paths_) {
-      CHECK((path.time_ / 1_s) - ((34_m / (3 * constants::c)) / 1_s) ==
+      CHECK((path.total_time_ / 1_s) - ((34_m / (3 * constants::c)) / 1_s) ==
             Approx(0).margin(absMargin));
       CHECK(path.average_refractivity_ == Approx(1));
       CHECK(path.emit_.getComponents() == v1.getComponents());
@@ -196,7 +196,7 @@ TEST_CASE("Radio", "[processes]") {
 
     // perform checks to paths1_ components (this is just a sketch for now)
     for (auto const& path :paths1_) {
-      CHECK( (path.time_ / 1_s)  - ((34_m / (3 * constants::c)) / 1_s)
+      CHECK( (path.total_time_ / 1_s)  - ((34_m / (3 * constants::c)) / 1_s)
              == Approx(0).margin(absMargin) );
       CHECK( path.average_refractivity_ == Approx(1) );
       CHECK( path.emit_.getComponents() == vv1.getComponents() );
@@ -247,7 +247,7 @@ TEST_CASE("Radio", "[processes]") {
 
     // perform checks to paths1_ components (this is just a sketch for now)
     for (auto const& path :paths2_) {
-      CHECK( (path.time_ / 1_s)  - ((3.177511688_m / (3 * constants::c)) / 1_s)
+      CHECK( (path.total_time_ / 1_s)  - ((3.177511688_m / (3 * constants::c)) / 1_s)
              == Approx(0).margin(absMargin) );
       CHECK( path.average_refractivity_ == Approx(0.210275935) );
       CHECK( path.emit_.getComponents() == vvv1.getComponents() );
-- 
GitLab