Skip to content

Commit

Permalink
Update src/equations/ideal_glm_mhd_multiion.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
  • Loading branch information
amrueda and sloede authored Dec 18, 2024
1 parent 5ff21e8 commit 88545bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equations/ideal_glm_mhd_multiion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ end
# Dissipation for the energy equation of species `k` depending on `w_1`, `w_2`, `w_3` and `w_end`. These are the
# values of the dissipation that depend on the off-diagonal block ``B`` of the dissipation matrix ``H`` (see equation (80)
# and Figure 1 of the reference given above.
ind_E = 3 + (k - 1) * 5 + 5
ind_E = 3 + 5 * k # simplified version of 3 + (k - 1) * 5 + 5
dissipation[ind_E] -= 0.5f0 * λ * h_B_psi * B1_avg * (w_rr[1] - w_ll[1])
dissipation[ind_E] -= 0.5f0 * λ * h_B_psi * B2_avg * (w_rr[2] - w_ll[2])
dissipation[ind_E] -= 0.5f0 * λ * h_B_psi * B3_avg * (w_rr[3] - w_ll[3])
Expand Down

0 comments on commit 88545bc

Please sign in to comment.