From 1a7b598b7a80955c120b51a696367fbb2c9c3dbf Mon Sep 17 00:00:00 2001 From: Benjamin Brands Date: Thu, 18 Apr 2019 22:25:21 +0200 Subject: [PATCH] add explicit instantiations for shared::Triangulation --- source/grid/grid_tools_dof_handlers.inst.in | 48 +++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/source/grid/grid_tools_dof_handlers.inst.in b/source/grid/grid_tools_dof_handlers.inst.in index 9ef81e67af..39c7284ad5 100644 --- a/source/grid/grid_tools_dof_handlers.inst.in +++ b/source/grid/grid_tools_dof_handlers.inst.in @@ -337,3 +337,51 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS) # endif #endif } + +// TODO the text above the last instantiation block implies that this should not +// be necessary... is it? +for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS) + { +#if deal_II_dimension <= deal_II_space_dimension +# if deal_II_dimension >= 2 + + namespace GridTools + \{ + template void + collect_periodic_faces< + parallel::shared::Triangulation>( + const parallel::shared::Triangulation &, + const types::boundary_id, + const types::boundary_id, + const int, + std::vector::cell_iterator>> &, + const Tensor<1, + parallel::shared::Triangulation< + deal_II_dimension, + deal_II_space_dimension>::space_dimension> &, + const FullMatrix &); + + template void + collect_periodic_faces< + parallel::shared::Triangulation>( + const parallel::shared::Triangulation &, + const types::boundary_id, + const int, + std::vector::cell_iterator>> &, + const Tensor<1, + parallel::shared::Triangulation< + deal_II_dimension, + deal_II_space_dimension>::space_dimension> &, + const FullMatrix &); + \} +# endif +#endif + } -- 2.39.5