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=refs%2Fpull%2F7198%2Fhead;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