Skip to content

Commit f549d21

Browse files
committed
Removed allocations in source_terms_collision_ion_ion at the expense of more computations
1 parent 18561ca commit f549d21

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/equations/ideal_glm_mhd_multiion.jl

-3
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,6 @@ function source_terms_collision_ion_ion(u, x, t,
488488
S_q3 = 0
489489
S_E = 0
490490
for l in eachcomponent(equations)
491-
# Skip computation for same species
492-
l == k && continue
493-
494491
rho_l, v1_l, v2_l, v3_l, p_l = get_component(l, prim, equations)
495492
T_l = p_l / (rho_l * gas_constants[l])
496493

0 commit comments

Comments
 (0)