From 667351e97382c6bc0621da346fbb45159403eddd Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 18 Jul 2015 12:24:04 -0400 Subject: [PATCH] Avoid Intel 15 bug in SymmetricTensor This should fix broken behavior in deal.II/fe_values_view_{23|24|25} with Intel 15.0.3, where the compiler sometimes forgets to initialize the static fields. --- include/deal.II/base/symmetric_tensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index a50f199253..f24f57f880 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -1900,7 +1900,7 @@ namespace internal case 2: { - static const TableIndices<2> table[3] = + const TableIndices<2> table[3] = { TableIndices<2> (0,0), TableIndices<2> (1,1), @@ -1911,7 +1911,7 @@ namespace internal case 3: { - static const TableIndices<2> table[6] = + const TableIndices<2> table[6] = { TableIndices<2> (0,0), TableIndices<2> (1,1), -- 2.39.5