Skip to content

Commit

Permalink
changing default quadrature for tensor product elements to N+1 pt Gauss
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Aug 3, 2024
1 parent 6a47a47 commit f086cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RefElemData_polynomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RefElemData(elem::Union{Line, Tri, Tet, Wedge, Pyr},

# on quad and hex elements, default to a tensor product quadrature
RefElemData(elem::Union{Quad, Hex}, approximation_type::Polynomial{DefaultPolynomialType}, N; kwargs...) =
RefElemData(elem, Polynomial(TensorProductQuadrature(gauss_quad(0, 0, N+1))), N; kwargs...)
RefElemData(elem, Polynomial(TensorProductQuadrature(gauss_quad(0, 0, N))), N; kwargs...)

# special case: for lines, tensor product and multidimensional quadrature are the same
RefElemData(elem::Line, approx_type::Polynomial{<:TensorProductQuadrature}, N; kwargs...) =
Expand Down

0 comments on commit f086cac

Please sign in to comment.