Skip to content

Commit

Permalink
fix sign error
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Nov 14, 2024
1 parent 646f8d5 commit 8f36c73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/solvers/dgmulti/sbp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ function calc_volume_integral!(du, u, mesh::DGMultiMesh,
for id in nzrange(A_base, i)
j = rows[id]
u_j = u[j]
A_ij = vals[id]

# we use the negative of A_ij since A is skew symemtric,
# and we are accessing the transpose of A.
A_ij = -vals[id]
AF_ij = 2 * A_ij *
volume_flux(u_i, u_j, normal_direction, equations)
du_i = du_i + AF_ij
Expand Down

0 comments on commit 8f36c73

Please sign in to comment.