diff --git a/rpkt.cc b/rpkt.cc index 8127663e8..9c5d30a04 100644 --- a/rpkt.cc +++ b/rpkt.cc @@ -50,7 +50,7 @@ MPI_Win win_expansionopacity_planck_cumulative = MPI_WIN_NULL; // get the frequency change per distance travelled assuming linear change to the abort distance // this is done is two parts to get identical results to do_rpkt_step() -auto get_nu_cmf_abort(const std::array pos, const std::array dir, const double prop_time, +auto get_nu_cmf_abort(const std::array &pos, const std::array &dir, const double prop_time, const double nu_rf, const double abort_dist) -> double { const auto half_abort_dist = abort_dist / 2.; const auto abort_time = prop_time + (half_abort_dist / CLIGHT_PROP) + (half_abort_dist / CLIGHT_PROP);