From 5c1ad1e1619a1659d7844bdfb3b5073cbc5cfb48 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 15 Apr 2018 12:02:11 +0200 Subject: [PATCH] Fix compiling with clang-6 --- include/deal.II/base/symmetric_tensor.h | 2 +- include/deal.II/base/symmetric_tensor.templates.h | 2 +- source/base/symmetric_tensor.inst.in | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 08b857a1d2..d9611b895b 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -3140,7 +3140,7 @@ enum struct SymmetricTensorEigenvectorMethod * @author Joachim Kopp, Jean-Paul Pelteret, 2017 */ template -std::array >,dim> +std::array >,std::integral_constant::value> eigenvectors (const SymmetricTensor<2,dim,Number> &T, const SymmetricTensorEigenvectorMethod method = SymmetricTensorEigenvectorMethod::ql_implicit_shifts); diff --git a/include/deal.II/base/symmetric_tensor.templates.h b/include/deal.II/base/symmetric_tensor.templates.h index 0f5cc7c282..8d29d728a7 100644 --- a/include/deal.II/base/symmetric_tensor.templates.h +++ b/include/deal.II/base/symmetric_tensor.templates.h @@ -802,7 +802,7 @@ namespace internal template -std::array >,dim> +std::array >,std::integral_constant::value> eigenvectors (const SymmetricTensor<2,dim,Number> &T, const SymmetricTensorEigenvectorMethod method) { diff --git a/source/base/symmetric_tensor.inst.in b/source/base/symmetric_tensor.inst.in index 7e7963fe7d..b45f856b9d 100644 --- a/source/base/symmetric_tensor.inst.in +++ b/source/base/symmetric_tensor.inst.in @@ -27,7 +27,7 @@ for (deal_II_dimension : DIMENSIONS; number : REAL_SCALARS) eigenvalues (const SymmetricTensor<2,deal_II_dimension,number> &); template - std::array >,deal_II_dimension> + std::array >,std::integral_constant::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 >,deal_II_dimension> + std::array >,std::integral_constant::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 >,deal_II_dimension> + std::array >,std::integral_constant::value> eigenvectors (const SymmetricTensor<2,deal_II_dimension,number> &, const SymmetricTensorEigenvectorMethod); } -- 2.39.5