Skip to content

Commit

Permalink
Update rpkt.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 9903d0a commit 52bc2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpkt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<double, 3> pos, const std::array<double, 3> dir, const double prop_time,
auto get_nu_cmf_abort(const std::array<double, 3> &pos, const std::array<double, 3> &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);
Expand Down

0 comments on commit 52bc2e0

Please sign in to comment.