diff --git a/vectors.h b/vectors.h index a4b67e650..39014eb9a 100644 --- a/vectors.h +++ b/vectors.h @@ -6,7 +6,6 @@ #include #include #include -#include #include #include "constants.h" @@ -39,7 +38,7 @@ template } // Get velocity vector of the flow at a position with homologous expansion. -[[nodiscard]] constexpr auto get_velocity(std::span x, const double t) -> std::array { +[[nodiscard]] constexpr auto get_velocity(const std::array &x, const double t) -> std::array { return std::array{x[0] / t, x[1] / t, x[2] / t}; } @@ -127,7 +126,7 @@ template return dopplerfactorsq; } -[[nodiscard]] constexpr auto doppler_packet_nucmf_on_nurf(const std::span &pos_rf, +[[nodiscard]] constexpr auto doppler_packet_nucmf_on_nurf(const std::array &pos_rf, const std::array &dir_rf, const double prop_time) -> double { return doppler_nucmf_on_nurf(dir_rf, get_velocity(pos_rf, prop_time));