From: Bruno Blais Date: Thu, 5 Dec 2019 13:24:30 +0000 (-0500) Subject: - Fixed indentation X-Git-Tag: v9.2.0-rc1~799^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9071%2Fhead;p=dealii.git - Fixed indentation - Fixed documentation of dof_tools - Added the const modified for the dof_comp --- 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> &,