diff --git a/src/solvers/dgmulti/sbp.jl b/src/solvers/dgmulti/sbp.jl index 232555e18b5..6e97940c2a5 100644 --- a/src/solvers/dgmulti/sbp.jl +++ b/src/solvers/dgmulti/sbp.jl @@ -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