From c3fd3d2ef2c9e230b6523d7240b35d50d7c2d822 Mon Sep 17 00:00:00 2001 From: Ahmad Shahba Date: Sun, 3 Jul 2022 18:40:51 -0400 Subject: [PATCH] Added explicit instantiations of DoFTools::distribute_cell_to_dof_vector for non-zero codim cases --- source/dofs/dof_tools.inst.in | 37 ++++++++++++++--------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/source/dofs/dof_tools.inst.in b/source/dofs/dof_tools.inst.in index 515ada123d..eca45afde1 100644 --- a/source/dofs/dof_tools.inst.in +++ b/source/dofs/dof_tools.inst.in @@ -154,19 +154,6 @@ for (deal_II_dimension : DIMENSIONS) // TODO: can cleanup a bit more to fit into the scheme used above - template void DoFTools::distribute_cell_to_dof_vector( - const DoFHandler &dof_handler, - const Vector & cell_data, - Vector & dof_data, - const unsigned int component); - template void DoFTools::distribute_cell_to_dof_vector( - const DoFHandler &dof_handler, - const Vector & cell_data, - Vector & dof_data, - const unsigned int component); - template void DoFTools::extract_boundary_dofs( const DoFHandler &, @@ -455,16 +442,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) const DoFHandler &, const BlockMask &, std::vector &); - \} -#endif - } - -for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) - { -#if deal_II_dimension <= deal_II_space_dimension - namespace DoFTools - \{ template void make_cell_patches( SparsityPattern &, @@ -473,6 +451,21 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : DIMENSIONS) const std::vector &, const types::global_dof_index); + template void + distribute_cell_to_dof_vector( + const DoFHandler + & dof_handler, + const Vector &cell_data, + Vector & dof_data, + const unsigned int component); + + template void + distribute_cell_to_dof_vector( + const DoFHandler + & dof_handler, + const Vector &cell_data, + Vector & dof_data, + const unsigned int component); \} #endif } -- 2.39.5