From: Daniel Arndt Date: Fri, 18 Aug 2017 13:27:15 +0000 (+0200) Subject: Add explicit instantiations X-Git-Tag: v9.0.0-rc1~1180^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4701%2Fhead;p=dealii.git Add explicit instantiations --- diff --git a/source/matrix_free/CMakeLists.txt b/source/matrix_free/CMakeLists.txt index 04b9927961..0ff1abb158 100644 --- a/source/matrix_free/CMakeLists.txt +++ b/source/matrix_free/CMakeLists.txt @@ -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 index 0000000000..cd9a106822 --- /dev/null +++ b/source/matrix_free/evaluation_selector.cc @@ -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_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 index 0000000000..6313bb8980 --- /dev/null +++ b/source/matrix_free/evaluation_selector.inst.in @@ -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::integrate + (const internal::MatrixFreeFunctions::ShapeInfo > &shape_info, + VectorizedArray *[], VectorizedArray *[], + VectorizedArray *[][deal_II_dimension], VectorizedArray *, + const bool, const bool); + + template + void + SelectEvaluator::evaluate + (const internal::MatrixFreeFunctions::ShapeInfo > &shape_info, + VectorizedArray *[], VectorizedArray *[], + VectorizedArray *[][deal_II_dimension], + VectorizedArray *[][(deal_II_dimension*(deal_II_dimension+1))/2], + VectorizedArray *, const bool, const bool, const bool); +}