]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add explicit instantiations 4701/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 18 Aug 2017 13:27:15 +0000 (15:27 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 20 Aug 2017 15:52:32 +0000 (17:52 +0200)
source/matrix_free/CMakeLists.txt
source/matrix_free/evaluation_selector.cc [new file with mode: 0644]
source/matrix_free/evaluation_selector.inst.in [new file with mode: 0644]

index 04b9927961652b43ed0f6c9a651b01c6abbec2f8..0ff1abb15871bf3bf67cc9e9716962d95c7b2bbb 100644 (file)
@@ -17,10 +17,12 @@ INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 
 SET(_src
   matrix_free.cc
+  evaluation_selector.cc
   )
 
 SET(_inst
   matrix_free.inst.in
+  evaluation_selector.inst.in
   )
 
 FILE(GLOB _header
diff --git a/source/matrix_free/evaluation_selector.cc b/source/matrix_free/evaluation_selector.cc
new file mode 100644 (file)
index 0000000..cd9a106
--- /dev/null
@@ -0,0 +1,23 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 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/matrix_free/evaluation_selector.h>
+
+DEAL_II_NAMESPACE_OPEN
+
+#include "evaluation_selector.inst"
+
+DEAL_II_NAMESPACE_CLOSE
diff --git a/source/matrix_free/evaluation_selector.inst.in b/source/matrix_free/evaluation_selector.inst.in
new file mode 100644 (file)
index 0000000..6313bb8
--- /dev/null
@@ -0,0 +1,35 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2017 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.
+//
+// ---------------------------------------------------------------------
+
+
+for (deal_II_dimension : DIMENSIONS; components : SPACE_DIMENSIONS; scalar_type : REAL_SCALARS)
+{
+    template
+    void
+    SelectEvaluator<deal_II_dimension, -1, 0, components, scalar_type>::integrate
+    (const internal::MatrixFreeFunctions::ShapeInfo<VectorizedArray<scalar_type> > &shape_info,
+     VectorizedArray<scalar_type> *[], VectorizedArray<scalar_type> *[],
+     VectorizedArray<scalar_type> *[][deal_II_dimension], VectorizedArray<scalar_type> *,
+     const bool, const bool);
+
+    template
+    void
+    SelectEvaluator<deal_II_dimension, -1, 0, components, scalar_type>::evaluate
+    (const internal::MatrixFreeFunctions::ShapeInfo<VectorizedArray<scalar_type> > &shape_info,
+     VectorizedArray<scalar_type> *[], VectorizedArray<scalar_type> *[],
+     VectorizedArray<scalar_type> *[][deal_II_dimension],
+     VectorizedArray<scalar_type> *[][(deal_II_dimension*(deal_II_dimension+1))/2],
+     VectorizedArray<scalar_type> *, const bool, const bool, const bool);
+}

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.