]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling for dim=0
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 21 May 2020 16:16:24 +0000 (12:16 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 21 May 2020 16:16:24 +0000 (12:16 -0400)
include/deal.II/base/polynomial_space.h

index 74fb9c98f00bc50bbec0659c6b49dcc52e0792d5..18ea2fda9441d0cc49792886b8e59284be095693 100644 (file)
@@ -336,7 +336,7 @@ PolynomialSpace<dim>::compute_derivative(const unsigned int i,
 {
   const std::array<unsigned int, dim> indices = compute_index(i);
 
-  double v[dim][order + 1];
+  std::array<std::array<double, order + 1>, dim> v;
   {
     std::vector<double> tmp(order + 1);
     for (unsigned int d = 0; d < dim; ++d)

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.