]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make compile 8815/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 20 Sep 2019 19:07:39 +0000 (15:07 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 20 Sep 2019 19:07:39 +0000 (15:07 -0400)
source/base/tensor_product_polynomials.cc

index 7db3763f10ac73fd279f5b3d7601aacefb701b77..d10d94b28c1a677a0e7ae50cf57a3b28b58f4150 100644 (file)
@@ -164,7 +164,7 @@ TensorProductPolynomials<dim, PolynomialType>::compute_grad(
   const unsigned int i,
   const Point<dim> & p) const
 {
-  unsigned int indices[(dim > 0) ? dim : 1];
+  unsigned int indices[dim];
   compute_index(i, indices);
 
   // compute values and
@@ -195,6 +195,17 @@ TensorProductPolynomials<dim, PolynomialType>::compute_grad(
 
 
 
+template <>
+Tensor<1, 0>
+TensorProductPolynomials<0, Polynomials::Polynomial<double>>::compute_grad(
+  const unsigned int,
+  const Point<0> &) const
+{
+  return Tensor<1, 0>();
+}
+
+
+
 template <int dim, typename PolynomialType>
 Tensor<2, dim>
 TensorProductPolynomials<dim, PolynomialType>::compute_grad_grad(
@@ -240,6 +251,17 @@ TensorProductPolynomials<dim, PolynomialType>::compute_grad_grad(
 
 
 
+template <>
+Tensor<2, 0>
+TensorProductPolynomials<0, Polynomials::Polynomial<double>>::compute_grad_grad(
+  const unsigned int,
+  const Point<0> &) const
+{
+  return Tensor<2, 0>();
+}
+
+
+
 template <int dim, typename PolynomialType>
 void
 TensorProductPolynomials<dim, PolynomialType>::evaluate(

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.