]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling with clang-6 6249/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 15 Apr 2018 10:02:11 +0000 (12:02 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 15 Apr 2018 11:04:31 +0000 (13:04 +0200)
include/deal.II/base/symmetric_tensor.h
include/deal.II/base/symmetric_tensor.templates.h
source/base/symmetric_tensor.inst.in

index 08b857a1d2f56761f6875ba8ef73f6502523d340..d9611b895ba4989064c52f591ca7df4ff9a16d0e 100644 (file)
@@ -3140,7 +3140,7 @@ enum struct SymmetricTensorEigenvectorMethod
  * @author Joachim Kopp, Jean-Paul Pelteret, 2017
  */
 template <int dim, typename Number>
-std::array<std::pair<Number, Tensor<1,dim,Number> >,dim>
+std::array<std::pair<Number, Tensor<1,dim,Number> >,std::integral_constant<int, dim>::value>
 eigenvectors (const SymmetricTensor<2,dim,Number>         &T,
               const SymmetricTensorEigenvectorMethod       method = SymmetricTensorEigenvectorMethod::ql_implicit_shifts);
 
index 0f5cc7c28202438bfddd106ee1034350053a1d61..8d29d728a782897166be4cfee0f487dafbe2233c 100644 (file)
@@ -802,7 +802,7 @@ namespace internal
 
 
 template <int dim, typename Number>
-std::array<std::pair<Number, Tensor<1,dim,Number> >,dim>
+std::array<std::pair<Number, Tensor<1,dim,Number> >,std::integral_constant<int, dim>::value>
 eigenvectors (const SymmetricTensor<2,dim,Number>         &T,
               const SymmetricTensorEigenvectorMethod       method)
 {
index 7e7963fe7dded34588cca570d45db7c7376db275..b45f856b9d129c2b1573c1bed3825831cef10ba5 100644 (file)
@@ -27,7 +27,7 @@ for (deal_II_dimension : DIMENSIONS; number : REAL_SCALARS)
     eigenvalues (const SymmetricTensor<2,deal_II_dimension,number> &);
 
     template
-    std::array<std::pair<number, Tensor<1,deal_II_dimension,number> >,deal_II_dimension>
+    std::array<std::pair<number,Tensor<1,deal_II_dimension,number> >,std::integral_constant<int, deal_II_dimension>::value>
     eigenvectors (const SymmetricTensor<2,deal_II_dimension,number> &,
                   const SymmetricTensorEigenvectorMethod);
 }
@@ -45,7 +45,7 @@ for (deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_ADOLC_REAL_SCALARS)
     eigenvalues (const SymmetricTensor<2,deal_II_dimension,number> &);
 
     template
-    std::array<std::pair<number, Tensor<1,deal_II_dimension,number> >,deal_II_dimension>
+    std::array<std::pair<number,Tensor<1,deal_II_dimension,number> >,std::integral_constant<int, deal_II_dimension>::value>
     eigenvectors (const SymmetricTensor<2,deal_II_dimension,number> &,
                   const SymmetricTensorEigenvectorMethod);
 }
@@ -63,7 +63,7 @@ for (deal_II_dimension : DIMENSIONS; number : DIFFERENTIABLE_TRILINOS_SACADO_REA
     eigenvalues (const SymmetricTensor<2,deal_II_dimension,number> &);
 
     template
-    std::array<std::pair<number, Tensor<1,deal_II_dimension,number> >,deal_II_dimension>
+    std::array<std::pair<number,Tensor<1,deal_II_dimension,number> >,std::integral_constant<int, deal_II_dimension>::value>
     eigenvectors (const SymmetricTensor<2,deal_II_dimension,number> &,
                   const SymmetricTensorEigenvectorMethod);
 }

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.