]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning: declaration of dim hides template parameter when using CUDA 10906/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 11 Sep 2020 21:11:38 +0000 (21:11 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 11 Sep 2020 21:11:38 +0000 (21:11 +0000)
include/deal.II/base/tensor_product_polynomials.h

index 4a8715e55ade92afbe6af6d65f102b045608b81c..6f5e15897e5194c0c9d16ae8dc9bd06579885483 100644 (file)
@@ -665,8 +665,7 @@ Tensor<order, 0>
 TensorProductPolynomials<0, Polynomials::Polynomial<double>>::
   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<order, 0>
 AnisotropicPolynomials<0>::compute_derivative(const unsigned int,
                                               const Point<0> &) const
 {
-  constexpr int dim = 0;
-  AssertThrow(dim > 0, ExcNotImplemented());
+  AssertThrow(false, ExcNotImplemented());
 
   return {};
 }

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.