]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid Intel 15 bug in SymmetricTensor 1158/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 18 Jul 2015 16:24:04 +0000 (12:24 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 18 Jul 2015 16:24:04 +0000 (12:24 -0400)
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

index a50f1992530addec867e4d7ef6b315fdec156463..f24f57f880bbf87ace82c63f895b458c6f9ff495 100644 (file)
@@ -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),

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.