Skip to content

Commit

Permalink
more descriptive error message
Browse files Browse the repository at this point in the history
for RefElemData constructors combining Tri/Tet/Wedge/Pyr with TensorProductQuadrature. This should be easy to implement in the future (Stroud)
  • Loading branch information
jlchan committed Apr 25, 2024
1 parent 0200f50 commit 1aca93b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RefElemData_polynomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ RefElemData(elem::Line, approx_type::Polynomial{<:TensorProductQuadrature}, N; k
RefElemData(elem, Polynomial{MultidimensionalQuadrature}(), N;
quad_rule_vol=approx_type.data.quad_rule_1D, kwargs...)

function RefElemData(elem::Union{Tri, Tet, Wedge, Pyr},
approx_type::Polynomial{<:TensorProductQuadrature},
N; kwargs...)
error("Tensor product quadrature constructors not yet implemented " *
"for Tri, Tet, Wedge, Pyr elements.")
end

"""
RefElemData(elem::Line, approximation_type, N;
quad_rule_vol = quad_nodes(elem, N+1))
Expand Down

0 comments on commit 1aca93b

Please sign in to comment.