From: Bruno Turcksin Date: Fri, 11 Sep 2020 21:11:38 +0000 (+0000) Subject: Fix warning: declaration of dim hides template parameter when using CUDA X-Git-Tag: v9.3.0-rc1~1124^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade3f2c1c9050440e6137ceca8d9c383740e107f;p=dealii.git Fix warning: declaration of dim hides template parameter when using CUDA --- diff --git a/include/deal.II/base/tensor_product_polynomials.h b/include/deal.II/base/tensor_product_polynomials.h index 4a8715e55a..6f5e15897e 100644 --- a/include/deal.II/base/tensor_product_polynomials.h +++ b/include/deal.II/base/tensor_product_polynomials.h @@ -665,8 +665,7 @@ Tensor TensorProductPolynomials<0, Polynomials::Polynomial>:: compute_derivative(const unsigned int, const Point<0> &) const { - constexpr int dim = 0; - AssertThrow(dim > 0, ExcNotImplemented()); + AssertThrow(false, ExcNotImplemented()); return {}; } @@ -843,8 +842,7 @@ Tensor AnisotropicPolynomials<0>::compute_derivative(const unsigned int, const Point<0> &) const { - constexpr int dim = 0; - AssertThrow(dim > 0, ExcNotImplemented()); + AssertThrow(false, ExcNotImplemented()); return {}; }