diff --git a/corsika/modules/radio/propagators/SignalPath.hpp b/corsika/modules/radio/propagators/SignalPath.hpp index 76157d899473b5fd34d53bc9c8e47a1299fe8e6b..20c1fd69abf1ce09e620572bd0c5e14f720c5364 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 7b7321e86ad986453885afa2bf403baeb4c3a9dd..6a61dc18f77617e5bed23cddc69874ce9ef77491 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() );