]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Always test the layout of the VectorizedArray class 8357/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 9 Jul 2019 01:48:45 +0000 (21:48 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 9 Jul 2019 01:48:45 +0000 (21:48 -0400)
source/base/vectorization.cc

index ebd3c66961bf733802c0dd4e7bf0459ae0e82cc7..5d544e15d8b08027e01ad32782ec3c38aa50c303 100644 (file)
@@ -20,6 +20,7 @@ DEAL_II_NAMESPACE_OPEN
 #if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && !defined(DEAL_II_MSVC)
 const unsigned int VectorizedArray<double>::n_array_elements;
 const unsigned int VectorizedArray<float>::n_array_elements;
+#endif
 
 // VectorizedArray must be a POD (plain old data) type to make sure it
 // can use maximum level of compiler optimization.
@@ -33,6 +34,5 @@ static_assert(std::is_standard_layout<VectorizedArray<double>>::value &&
 static_assert(std::is_standard_layout<VectorizedArray<float>>::value &&
                 std::is_trivial<VectorizedArray<float>>::value,
               "VectorizedArray<float> must be a POD type");
-#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.