From 657c6bf0864f45c6d518c551d687246e4998cf24 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 2 Aug 2016 21:10:28 +0200 Subject: [PATCH] change DoFHandler template --- doc/news/changes.h | 4 ++++ include/deal.II/dofs/dof_tools.h | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/news/changes.h b/doc/news/changes.h index 627b9a6cd2..65a2790bb7 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -47,6 +47,10 @@ pattern classes, so no generic function would be possible. On the other hand, the block list is an object, which only extends over locally owned grid cells and its size can be determined efficiently upon initialization. Therefore, SparsityPattern is a good choice here. + +At the same time, we changed the dof handler template to the type +DoFHandler, since hp::DoFHandler requires a different setup of the +SparsityPattern.
(Guido Kanschat, 2016/08/02) diff --git a/include/deal.II/dofs/dof_tools.h b/include/deal.II/dofs/dof_tools.h index 19e71a8e01..b599fe4f35 100644 --- a/include/deal.II/dofs/dof_tools.h +++ b/include/deal.II/dofs/dof_tools.h @@ -1704,8 +1704,8 @@ namespace DoFTools * level. This pattern can be used in RelaxationBlock classes as * block list for additive and multiplicative Schwarz methods. * - * The row index in this pattern is the cell index resulting - * from standard iteration through the Triangulation. For a + * The row index in this pattern is the cell index resulting from + * standard iteration through a level of the Triangulation. For a * parallel::distributed::Triangulation, only locally owned cells * are entered. * @@ -1715,12 +1715,12 @@ namespace DoFTools * * selected_dofs is a vector indexed by the local degrees * of freedom on a cell. If it is used, only such dofs are entered - * into the block, which are selected. This allows for instance the - * exclusion of components or of dofs on the boundary. + * into the block list which are selected. This allows for instance + * the exclusion of components or of dofs on the boundary. */ - template + template void make_cell_patches(SparsityPattern &block_list, - const DoFHandlerType &dof_handler, + const DoFHandler &dof_handler, const unsigned int level, const std::vector &selected_dofs = std::vector(), types::global_dof_index offset = 0); -- 2.39.5