From 2c1105e5d0bd486ef90cfe8f7fd3dd27e2dc0f6f Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sat, 9 Dec 2023 15:32:29 -0600 Subject: [PATCH] comments and renaming Gauss -> TensorProductGaussCollocation --- src/RefElemData.jl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/RefElemData.jl b/src/RefElemData.jl index 475719ea..9e787308 100644 --- a/src/RefElemData.jl +++ b/src/RefElemData.jl @@ -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 ============ @@ -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}"