Skip to content

Commit

Permalink
Fix diffusion typo
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Dec 16, 2024
1 parent 19a5e10 commit 786170b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multicomponent/flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function add_diffusive_component_flux(q, S, ρ, X, Y, D, face, grad, lv)

@inbounds for i in eachindex(q)
q_i = q[i]
dX = gradient(X, l, grad)
dY = gradient(Y, l, grad)
dX = gradient(X, i, grad)
dY = gradient(Y, i, grad)

q_i += diff_mass_l*dX + diff_mass_v*dY
q = setindex(q, q_i, i)
Expand Down

0 comments on commit 786170b

Please sign in to comment.