Skip to content

Commit

Permalink
comments and renaming Gauss -> TensorProductGaussCollocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Dec 9, 2023
1 parent 3fabaca commit 2c1105e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/RefElemData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,15 @@ end

TensorProductQuadrature(args...) = TensorProductQuadrature(args)

# Polynomial{Gauss} type indicates (N+1)-point Gauss quadrature on tensor product elements
struct Gauss end
Polynomial{Gauss}() = Polynomial(Gauss())
"""
TensorProductGaussCollocation
Polynomial{TensorProductGaussCollocation} type indicates a tensor product
# (N+1)-point Gauss quadrature on tensor product elements.
"""
struct TensorProductGaussCollocation end
const Gauss = TensorProductGaussCollocation
Polynomial{TensorProductGaussCollocation}() = Polynomial(TensorProductGaussCollocation())

# ========= SBP approximation types ============

Expand Down Expand Up @@ -270,5 +276,5 @@ _short_typeof(approx_type::Wedge) = "Wedge"
_short_typeof(approx_type::Pyr) = "Pyr"

_short_typeof(approx_type::Polynomial{<:DefaultPolynomialType}) = "Polynomial"
_short_typeof(approx_type::Polynomial{<:Gauss}) = "Polynomial{Gauss}"
_short_typeof(approx_type::Polynomial{<:TensorProductGaussCollocation}) = "Polynomial{Gauss}"
_short_typeof(approx_type::Polynomial{<:TensorProductQuadrature}) = "Polynomial{TensorProductQuadrature}"

0 comments on commit 2c1105e

Please sign in to comment.