From 366e04e720be1012bf7a853dee5e485b79b9cbec Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 7 Jan 2020 20:10:39 -0700 Subject: [PATCH] Simplify the instantiations of DoFTools::count_dofs_per_component(). --- source/dofs/dof_tools.inst.in | 57 ++++++++++------------------------- 1 file changed, 16 insertions(+), 41 deletions(-) diff --git a/source/dofs/dof_tools.inst.in b/source/dofs/dof_tools.inst.in index 19db8f6970..d3f3578cae 100644 --- a/source/dofs/dof_tools.inst.in +++ b/source/dofs/dof_tools.inst.in @@ -46,6 +46,8 @@ for (DoFHandler : DOFHANDLER_TEMPLATES; #endif } + + for (deal_II_dimension : DIMENSIONS) { template std::vector DoFTools::make_vertex_patches( @@ -394,36 +396,7 @@ for (deal_II_dimension : DIMENSIONS) #endif - - template void DoFTools::count_dofs_per_component< - DoFHandler>(const DoFHandler &, - std::vector &, - const bool, - const std::vector &); - - template void - DoFTools::count_dofs_per_component>( - const hp::DoFHandler &, - std::vector &, - const bool, - const std::vector &); - - #if deal_II_dimension < 3 - template void DoFTools::count_dofs_per_component< - DoFHandler>( - const DoFHandler &, - std::vector &, - const bool, - const std::vector &); - - template void DoFTools::count_dofs_per_component< - hp::DoFHandler>( - const hp::DoFHandler &, - std::vector &, - const bool, - const std::vector &); - template void DoFTools::extract_level_dofs< DoFHandler>( const unsigned int level, @@ -435,18 +408,6 @@ for (deal_II_dimension : DIMENSIONS) #if deal_II_dimension == 3 - template void DoFTools::count_dofs_per_component>( - const DoFHandler<1, 3> &, - std::vector &, - const bool, - const std::vector &); - - template void DoFTools::count_dofs_per_component>( - const hp::DoFHandler<1, 3> &, - std::vector &, - const bool, - const std::vector &); - template void DoFTools::extract_level_dofs>( const unsigned int level, const DoFHandler<1, 3> &, @@ -720,7 +681,21 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) const hp::DoFHandler &, const BlockMask &); + template void + count_dofs_per_component< + DoFHandler>( + const DoFHandler &, + std::vector &, + const bool, + const std::vector &); + template void + count_dofs_per_component< + hp::DoFHandler>( + const hp::DoFHandler &, + std::vector &, + const bool, + const std::vector &); template void make_cell_patches( -- 2.39.5