]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly define VectorizedArray::n_array_elements 6718/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 6 Jun 2018 22:26:34 +0000 (00:26 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 6 Jun 2018 22:26:34 +0000 (00:26 +0200)
source/base/CMakeLists.txt
source/base/vectorization.cc [new file with mode: 0644]

index a95b341c0d89f7e2a7cd8ab2ea2fa7f52dd7d6e7..392357a129610d565b0082fd9cfd5a48fa861bdc 100644 (file)
@@ -81,6 +81,7 @@ SET(_unity_include_src
   timer.cc
   time_stepping.cc
   utilities.cc
+  vectorization.cc
   )
 
 SET(_separate_src
diff --git a/source/base/vectorization.cc b/source/base/vectorization.cc
new file mode 100644 (file)
index 0000000..28c5e98
--- /dev/null
@@ -0,0 +1,23 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2018 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+#include <deal.II/base/vectorization.h>
+
+DEAL_II_NAMESPACE_OPEN
+
+constexpr unsigned int VectorizedArray<double>::n_array_elements;
+constexpr unsigned int VectorizedArray<float>::n_array_elements;
+
+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.