From: David Wells Date: Sun, 20 Sep 2020 17:11:39 +0000 (-0400) Subject: Add another explicit dim 0 instantiation. X-Git-Tag: v9.3.0-rc1~1093^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7457f58b4729db7f3fb3950e599bc6dd55456934;p=dealii.git Add another explicit dim 0 instantiation. This gets around a GCC -Wtype-limits warning in the loop when dim = 0. --- 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> &) {