From: Timo Heister Date: Fri, 20 Sep 2019 19:07:39 +0000 (-0400) Subject: make compile X-Git-Tag: v9.2.0-rc1~1057^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8815%2Fhead;p=dealii.git make compile --- diff --git a/source/base/tensor_product_polynomials.cc b/source/base/tensor_product_polynomials.cc index 7db3763f10..d10d94b28c 100644 --- a/source/base/tensor_product_polynomials.cc +++ b/source/base/tensor_product_polynomials.cc @@ -164,7 +164,7 @@ TensorProductPolynomials::compute_grad( const unsigned int i, const Point & 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::compute_grad( +template <> +Tensor<1, 0> +TensorProductPolynomials<0, Polynomials::Polynomial>::compute_grad( + const unsigned int, + const Point<0> &) const +{ + return Tensor<1, 0>(); +} + + + template Tensor<2, dim> TensorProductPolynomials::compute_grad_grad( @@ -240,6 +251,17 @@ TensorProductPolynomials::compute_grad_grad( +template <> +Tensor<2, 0> +TensorProductPolynomials<0, Polynomials::Polynomial>::compute_grad_grad( + const unsigned int, + const Point<0> &) const +{ + return Tensor<2, 0>(); +} + + + template void TensorProductPolynomials::evaluate(