From 764611476b260e84201336bc90c98c3031864a7b Mon Sep 17 00:00:00 2001 From: Bruno Blais Date: Thu, 5 Dec 2019 08:24:30 -0500 Subject: [PATCH] - Fixed indentation - Fixed documentation of dof_tools - Added the const modified for the dof_comp --- include/deal.II/dofs/dof_tools.h | 14 ++++++++++++-- source/dofs/dof_tools.cc | 2 +- source/dofs/dof_tools.inst.in | 5 ++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/include/deal.II/dofs/dof_tools.h b/include/deal.II/dofs/dof_tools.h index fcfe83f181..0048749e3f 100644 --- a/include/deal.II/dofs/dof_tools.h +++ b/include/deal.II/dofs/dof_tools.h @@ -26,7 +26,6 @@ #include #include -#include #include @@ -2305,6 +2304,17 @@ namespace DoFTools * function unsuitable for the case that the given DoFHandler object derives * from a parallel::distributed::Triangulation object. Consequently, this * function will produce an error if called with such a DoFHandler. + * + * @param mapping The mapping from the reference cell to the real cell on + * which DoFs are defined. + * @param dof_handler The object that describes which DoF indices live on + * which cell of the triangulation. + * @param support_points A vector that stores the corresponding location of the dofs + * in real space coordinates. Previous content of this object is deleted in + * this function. + * @param component_mask An optional component mask that restricts the + * components from which the support points are extracted. + * */ template void @@ -2352,7 +2362,7 @@ namespace DoFTools * contains the corresponding location in real space coordinates. Previous * content of this object is deleted in this function. * @param component_mask An optional component mask that restricts the - * components from which the support points are extracted + * components from which the support points are extracted. */ template void diff --git a/source/dofs/dof_tools.cc b/source/dofs/dof_tools.cc index 1ffb78db1e..eea300d155 100644 --- a/source/dofs/dof_tools.cc +++ b/source/dofs/dof_tools.cc @@ -2134,7 +2134,7 @@ namespace DoFTools fe_values.get_quadrature_points(); for (unsigned int i = 0; i < cell->get_fe().dofs_per_cell; ++i) { - unsigned int dof_comp = + const unsigned int dof_comp = cell->get_fe().system_to_component_index(i).first; // insert the values into the map if it is a valid component diff --git a/source/dofs/dof_tools.inst.in b/source/dofs/dof_tools.inst.in index f87fe38a54..8f6f286626 100644 --- a/source/dofs/dof_tools.inst.in +++ b/source/dofs/dof_tools.inst.in @@ -562,7 +562,10 @@ for (deal_II_dimension : DIMENSIONS) #if deal_II_dimension == 3 template void DoFTools::map_dofs_to_support_points<1, 3>( - const Mapping<1, 3> &, const DoFHandler<1, 3> &, std::vector> &,const ComponentMask &); + const Mapping<1, 3> &, + const DoFHandler<1, 3> &, + std::vector> &, + const ComponentMask &); template void DoFTools::count_dofs_per_block>( const DoFHandler<1, 3> &, -- 2.39.5