Skip to content

Commit 6682ba5

Browse files
Clarify order PolynomialDerivativeMatrix: (#2655)
1 parent 2551fde commit 6682ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/dgsem/basis_lobatto_legendre.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ function polynomial_derivative_matrix(nodes)
435435

436436
for i in 1:n_nodes, j in 1:n_nodes
437437
if j != i
438-
d[i, j] = wbary[j] / wbary[i] * 1 / (nodes[i] - nodes[j])
438+
d[i, j] = (wbary[j] / wbary[i]) * 1 / (nodes[i] - nodes[j])
439439
d[i, i] -= d[i, j]
440440
end
441441
end

0 commit comments

Comments
 (0)