From aa2e38200e3a6a9a0ad5514a693b3a49dc100612 Mon Sep 17 00:00:00 2001 From: Thomas Ceulemans Date: Tue, 8 Oct 2024 17:30:41 +0200 Subject: [PATCH] Fixed performance deprecation in shortchar solver. --- src/solver/solver.tpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solver/solver.tpp b/src/solver/solver.tpp index cc90887e..40e1f45a 100644 --- a/src/solver/solver.tpp +++ b/src/solver/solver.tpp @@ -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(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l, + compute_source_dtau(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); @@ -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(model, crt, nxt, crt_interp_idx, nxt_interp_idx, l, + compute_source_dtau(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);