From 7457f58b4729db7f3fb3950e599bc6dd55456934 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 20 Sep 2020 13:11:39 -0400 Subject: [PATCH] Add another explicit dim 0 instantiation. This gets around a GCC -Wtype-limits warning in the loop when dim = 0. --- include/deal.II/base/quadrature.h | 2 ++ source/base/quadrature.cc | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/include/deal.II/base/quadrature.h b/include/deal.II/base/quadrature.h index f2846005c5..c38164901f 100644 --- a/include/deal.II/base/quadrature.h +++ b/include/deal.II/base/quadrature.h @@ -463,6 +463,8 @@ template <> Quadrature<0>::Quadrature(const Quadrature<-1> &, const Quadrature<1> &); template <> Quadrature<0>::Quadrature(const Quadrature<1> &); +template <> +Quadrature<0>::Quadrature(const Point<0> &); template <> Quadrature<1>::Quadrature(const Quadrature<0> &, const Quadrature<1> &); diff --git a/source/base/quadrature.cc b/source/base/quadrature.cc index 9e79b4f987..59eebdb5dd 100644 --- a/source/base/quadrature.cc +++ b/source/base/quadrature.cc @@ -97,6 +97,7 @@ Quadrature::Quadrature(const Point &point) } + #ifndef DOXYGEN template <> Quadrature<1>::Quadrature(const Point<1> &point) @@ -107,6 +108,15 @@ Quadrature<1>::Quadrature(const Point<1> &point) +template <> +Quadrature<0>::Quadrature(const Point<0> &) + : is_tensor_product_flag(false) +{ + Assert(false, ExcImpossibleInDim(0)); +} + + + template <> Quadrature<0>::Quadrature(const SubQuadrature &, const Quadrature<1> &) { -- 2.39.5