]> https://gitweb.dealii.org/ - dealii.git/commitdiff
- Fixed indentation 9071/head
authorBruno Blais <blais.bruno@gmail.com>
Thu, 5 Dec 2019 13:24:30 +0000 (08:24 -0500)
committerBruno Blais <blais.bruno@gmail.com>
Thu, 5 Dec 2019 13:24:30 +0000 (08:24 -0500)
- Fixed documentation of dof_tools
- Added the const modified for the dof_comp

include/deal.II/dofs/dof_tools.h
source/dofs/dof_tools.cc
source/dofs/dof_tools.inst.in

index fcfe83f1816a6aff36b7a79a721cfb0f82bbfd3c..0048749e3f137d169305bf1df7ef30a65720d449 100644 (file)
@@ -26,7 +26,6 @@
 #include <deal.II/dofs/dof_handler.h>
 
 #include <deal.II/fe/component_mask.h>
-#include <deal.II/fe/fe_values.h>
 
 #include <deal.II/hp/dof_handler.h>
 
@@ -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 <int dim, int spacedim>
   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 <int dim, int spacedim>
   void
index 1ffb78db1e6b2638411631a2735fcdbefda31307..eea300d155e81c060149947f14dfe47594a13b75 100644 (file)
@@ -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
index f87fe38a54cf94f42c1a8fa5e2b4045c8558e3a1..8f6f286626060d3a9bf948762163b84e3c950e2c 100644 (file)
@@ -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<Point<3>> &,const ComponentMask &);
+      const Mapping<1, 3> &,
+      const DoFHandler<1, 3> &,
+      std::vector<Point<3>> &,
+      const ComponentMask &);
 
     template void DoFTools::count_dofs_per_block<DoFHandler<1, 3>>(
       const DoFHandler<1, 3> &,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.