From: Timo Heister Date: Sat, 18 Jul 2015 16:24:04 +0000 (-0400) Subject: Avoid Intel 15 bug in SymmetricTensor X-Git-Tag: v8.4.0-rc2~746^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1158%2Fhead;p=dealii.git 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. --- 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),