]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add another explicit dim 0 instantiation.
authorDavid Wells <drwells@email.unc.edu>
Sun, 20 Sep 2020 17:11:39 +0000 (13:11 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 21 Sep 2020 14:21:40 +0000 (10:21 -0400)
This gets around a GCC -Wtype-limits warning in the loop when dim = 0.

include/deal.II/base/quadrature.h
source/base/quadrature.cc

index f2846005c53d25462df38a5af44ef697fa01d6d4..c38164901fb22f7f91636f53c8bd0a7a1ba8875b 100644 (file)
@@ -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> &);
index 9e79b4f98795aefbff384481842cfd930b1ce2a5..59eebdb5ddb44a74cf3de7d7b21b89e722ce3322 100644 (file)
@@ -97,6 +97,7 @@ Quadrature<dim>::Quadrature(const Point<dim> &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> &)
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.