From: Daniel Arndt Date: Sun, 16 Sep 2018 20:27:47 +0000 (+0200) Subject: Only instantiate VectorizedArrAy::n_array_elements for vectorization enabled X-Git-Tag: v9.1.0-rc1~713^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79762b063961601f7ca0bf62be851033ed1e01de;p=dealii.git Only instantiate VectorizedArrAy::n_array_elements for vectorization enabled --- diff --git a/source/base/vectorization.cc b/source/base/vectorization.cc index 5876d07d2d..1cc3fe6de6 100644 --- a/source/base/vectorization.cc +++ b/source/base/vectorization.cc @@ -17,7 +17,9 @@ DEAL_II_NAMESPACE_OPEN +#if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 const unsigned int VectorizedArray::n_array_elements; const unsigned int VectorizedArray::n_array_elements; +#endif DEAL_II_NAMESPACE_CLOSE