Skip to content

Commit

Permalink
Fixed performance deprecation in shortchar solver.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCeulemans committed Oct 8, 2024
1 parent fb28161 commit aa2e382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solver/solver.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ accel inline Real Solver ::solve_shortchar_order_0_ray_forward(
const Real freq = model.radiation.frequencies.nu(o, f);
const Size l = model.radiation.frequencies.corresponding_line[f];

compute_source_dtau<None>(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l,
compute_source_dtau<approx>(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l,
freq * shift_c, freq * shift_n, shift_c, shift_n, dZ[idx - 1], crt_interp, nxt_interp,
compute_curr_opacity, dtau, chi_c, chi_n, source_c, source_n);
dtau = std::max(model.parameters->min_dtau, dtau);
Expand Down Expand Up @@ -1739,7 +1739,7 @@ accel inline Real Solver ::solve_shortchar_order_0_ray_backward(
const Real freq = model.radiation.frequencies.nu(o, f);
const Size l = model.radiation.frequencies.corresponding_line[f];

compute_source_dtau<None>(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l,
compute_source_dtau<approx>(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l,
freq * shift_c, freq * shift_n, shift_c, shift_n, dZ[indexp1 - 1], crt_interp,
nxt_interp, compute_curr_opacity, dtau, chi_c, chi_n, source_c, source_n);
dtau = std::max(model.parameters->min_dtau, dtau);
Expand Down

0 comments on commit aa2e382

Please sign in to comment.