]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only instantiate VectorizedArrAy::n_array_elements for vectorization enabled 7198/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 16 Sep 2018 20:27:47 +0000 (22:27 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 16 Sep 2018 20:27:47 +0000 (22:27 +0200)
source/base/vectorization.cc

index 5876d07d2db9cd9545efbd11cae8bbd2220e74b8..1cc3fe6de66728165452a348f669e8bf497c87f7 100644 (file)
@@ -17,7 +17,9 @@
 
 DEAL_II_NAMESPACE_OPEN
 
+#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1
 const unsigned int VectorizedArray<double>::n_array_elements;
 const unsigned int VectorizedArray<float>::n_array_elements;
+#endif
 
 DEAL_II_NAMESPACE_CLOSE

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.