From 1e60931eb51ea901f9c5f30a48718d9d1fe75a62 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 7 Jan 2020 20:42:13 -0700 Subject: [PATCH] Simplify the instantiations of DoFTools::extract_dofs(). --- source/dofs/dof_tools.inst.in | 74 ++++++++++++----------------------- 1 file changed, 26 insertions(+), 48 deletions(-) diff --git a/source/dofs/dof_tools.inst.in b/source/dofs/dof_tools.inst.in index 15c788aa66..b33610e531 100644 --- a/source/dofs/dof_tools.inst.in +++ b/source/dofs/dof_tools.inst.in @@ -70,6 +70,32 @@ for (DoFHandler : DOFHANDLER_TEMPLATES; const DoFHandler &, std::vector &, const std::vector &); + + // extract_dofs(): Deprecated versions that return information through + // the last argument + template void + extract_dofs>( + const DoFHandler &, + const ComponentMask &, + std::vector &); + + template void + extract_dofs>( + const DoFHandler &, + const BlockMask &, + std::vector &); + + + // extract_dofs(): New versions that return information as an IndexSet + template IndexSet + extract_dofs>( + const DoFHandler &, + const ComponentMask &); + + template IndexSet + extract_dofs>( + const DoFHandler &, + const BlockMask &); \} #endif } @@ -567,54 +593,6 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) deal_II_space_dimension>::active_cell_iterator> &patch); - // Deprecated versions that return information through the last - // argument - template void - extract_dofs>( - const DoFHandler &, - const ComponentMask &, - std::vector &); - - template void - extract_dofs>( - const DoFHandler &, - const BlockMask &, - std::vector &); - - template void - extract_dofs>( - const hp::DoFHandler &, - const ComponentMask &, - std::vector &); - - template void - extract_dofs>( - const hp::DoFHandler &, - const BlockMask &, - std::vector &); - - - // New versions that return information as an IndexSet - template IndexSet - extract_dofs>( - const DoFHandler &, - const ComponentMask &); - - template IndexSet - extract_dofs>( - const DoFHandler &, - const BlockMask &); - - template IndexSet - extract_dofs>( - const hp::DoFHandler &, - const ComponentMask &); - - template IndexSet - extract_dofs>( - const hp::DoFHandler &, - const BlockMask &); - // extract_level_dofs() for ComponentMask and BlockMask template void extract_level_dofs< -- 2.39.5