Skip to content

Commit

Permalink
Fix sign in Barnes scheme prefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gleck97 authored Aug 30, 2024
1 parent 9bd14ee commit 712bac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_packets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void do_nonthermal_predeposit(Packet &pkt, const int nts, const double t2) {
const double v_ej = std::sqrt(E_kin * 2 / grid::mtot_input);

const double prefactor = (pkt.pellet_decaytype == decay::DECAYTYPE_ALPHA) ? 7.74 : 7.4;
const double tau_ineff = prefactor * 86400 * std::sqrt(grid::mtot_input / (5.e-3 * 1.989 * 1.e33)) *
const double tau_ineff = prefactor * 86400 * std::sqrt(grid::mtot_input / (5.e-3 * 1.989 * 1.e33)) /
std::pow((0.2 * 29979200000) / v_ej, 3. / 2.);
const double f_p = std::log(1 + (2. * ts * ts / tau_ineff / tau_ineff)) / (2. * ts * ts / tau_ineff / tau_ineff);
assert_always(f_p >= 0.);
Expand Down

0 comments on commit 712bac5

Please sign in to comment.