From 05d0df85022cbaa162a324f9341ec375b79496ec Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 8 Nov 2017 17:22:10 -0700 Subject: [PATCH] Instantiate some more functions for the codim-1 case. While there, also simplify the file slightly. --- source/dofs/dof_tools.inst.in | 90 ++++++----------------------------- 1 file changed, 15 insertions(+), 75 deletions(-) diff --git a/source/dofs/dof_tools.inst.in b/source/dofs/dof_tools.inst.in index ac51e0fae9..4b606adb30 100644 --- a/source/dofs/dof_tools.inst.in +++ b/source/dofs/dof_tools.inst.in @@ -14,49 +14,39 @@ // --------------------------------------------------------------------- -for (deal_II_dimension : DIMENSIONS) +for (DoFHandler : DOFHANDLER_TEMPLATES; deal_II_dimension, deal_II_space_dimension : DIMENSIONS) { -#if deal_II_dimension > 1 - template - void - DoFTools::extract_locally_relevant_dofs > - (const DoFHandler & dof_handler, - IndexSet & dof_set); +#if deal_II_dimension <= deal_II_space_dimension template void - DoFTools::extract_locally_relevant_level_dofs > - (const DoFHandler & dof_handler, - const unsigned int level, + DoFTools::extract_locally_relevant_dofs > + (const DoFHandler & dof_handler, IndexSet & dof_set); + template void - DoFTools::extract_locally_relevant_level_dofs > - (const hp::DoFHandler & dof_handler, + DoFTools::extract_locally_relevant_level_dofs > + (const DoFHandler & dof_handler, const unsigned int level, IndexSet & dof_set); -#endif -#if deal_II_dimension > 2 template void - DoFTools::extract_locally_relevant_dofs > - (const DoFHandler & dof_handler, - IndexSet & dof_set); - template - void - DoFTools::extract_locally_relevant_level_dofs > - (const DoFHandler & dof_handler, - const unsigned int level, + DoFTools::extract_locally_owned_dofs > + (const DoFHandler & dof_handler, IndexSet & dof_set); + template void - DoFTools::extract_locally_relevant_level_dofs > - (const hp::DoFHandler & dof_handler, - const unsigned int level, + DoFTools::extract_locally_active_dofs > + (const DoFHandler & dof_handler, IndexSet & dof_set); #endif +} +for (deal_II_dimension : DIMENSIONS) +{ template std::vector DoFTools::make_vertex_patches (SparsityPattern&, const DoFHandler&, @@ -210,56 +200,6 @@ for (deal_II_dimension : DIMENSIONS) const types::subdomain_id subdomain_id, std::vector &selected_dofs); - template - void - DoFTools::extract_locally_owned_dofs > - (const DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_owned_dofs > - (const hp::DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_active_dofs > - (const DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_active_dofs > - (const hp::DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_relevant_dofs > - (const DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_relevant_dofs > - (const hp::DoFHandler & dof_handler, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_relevant_level_dofs > - (const DoFHandler & dof_handler, - const unsigned int level, - IndexSet & dof_set); - - template - void - DoFTools::extract_locally_relevant_level_dofs > - (const hp::DoFHandler & dof_handler, - const unsigned int level, - IndexSet & dof_set); - template void DoFTools::extract_constant_modes > -- 2.39.5