]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix comments in @code blocks in dofs headers 6883/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 4 Jul 2018 13:17:30 +0000 (15:17 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 4 Jul 2018 13:23:23 +0000 (15:23 +0200)
include/deal.II/dofs/dof_handler.h
include/deal.II/dofs/dof_tools.h

index 9b08cd587bf5814ee350c1014f97018b6412e380..f4a3744c12cad14562b5b1a74a12b1a54d65d781 100644 (file)
@@ -614,11 +614,14 @@ public:
    * does not contain any active cells (i.e., all cells on this level are
    * further refined, then this function returns
    * <code>end_active(level)</code> so that loops of the kind
-   *  @code
-   *    for (cell=dof_handler.begin_active(level);
-   * cell!=dof_handler.end_active(level); ++cell)
-   *      ...
-   *  @endcode
+   * @code
+   *   for (cell=dof_handler.begin_active(level);
+   *        cell!=dof_handler.end_active(level);
+   *        ++cell)
+   *     {
+   *       ...
+   *     }
+   * @endcode
    * have zero iterations, as may be expected if there are no active cells on
    * this level.
    */
@@ -714,7 +717,7 @@ public:
    * @code
    *   DoFHandler<dim> dof_handler;
    *   ...
-   *   for (auto cell : dof_handler.active_cell_iterators())
+   *   for (const auto &cell : dof_handler.active_cell_iterators())
    *     {
    *       fe_values.reinit (cell);
    *       ...do the local integration on 'cell'...;
index 42cc1bc09892805a656aaba1d3b078b2697e06d3..74cd5edcfa975c1e1ae09d1b752b8b06ddecb707 100644 (file)
@@ -2460,9 +2460,11 @@ namespace DoFTools
    * single gnuplot file, use code similar to
    * @code
    * std::ofstream out("gnuplot.gpl");
-   * out << "plot '-' using 1:2 with lines, '-' with labels point pt 2 offset
-   * 1,1" << std::endl; GridOut().write_gnuplot (triangulation, out); out << "e"
-   * << std::endl;
+   * out << "plot '-' using 1:2 with lines, "
+   *     << "'-' with labels point pt 2 offset 1,1"
+   *     << std::endl;
+   * GridOut().write_gnuplot (triangulation, out);
+   * out << "e" << std::endl;
    *
    * std::map<types::global_dof_index, Point<dim> > support_points;
    * DoFTools::map_dofs_to_support_points (MappingQ1<dim>(),
@@ -2482,18 +2484,19 @@ namespace DoFTools
    * @code
    * std::ofstream out("gnuplot.gpl");
    *
-   * out << "set terminal png size 400,410 enhanced font \"Helvetica,8\"" <<
-   * std::endl
-   *     << "set output \"output.png\"" << std::endl
-   *     << "set size square" << std::endl
-   *     << "set view equal xy" << std::endl
-   *     << "unset xtics" << std::endl
-   *     << "unset ytics" << std::endl
-   *     << "unset grid" << std::endl
-   *     << "unset border" << std::endl
-   *     << "plot '-' using 1:2 with lines notitle, '-' with labels point pt 2
-   * offset 1,1 notitle" << std::endl; GridOut().write_gnuplot (triangulation,
-   * out); out << "e" << std::endl;
+   * out << "set terminal png size 400,410 enhanced font \"Helvetica,8\"\n"
+   *     << "set output \"output.png\"\n"
+   *     << "set size square\n"
+   *     << "set view equal xy\n"
+   *     << "unset xtics\n"
+   *     << "unset ytics\n"
+   *     << "unset grid\n"
+   *     << "unset border\n"
+   *     << "plot '-' using 1:2 with lines notitle, "
+   *     << "'-' with labels point pt 2 offset 1,1 notitle"
+   *     << std::endl;
+   * GridOut().write_gnuplot (triangulation, out);
+   * out << "e" << std::endl;
    *
    * std::map<types::global_dof_index, Point<dim> > support_points;
    * DoFTools::map_dofs_to_support_points (MappingQ1<dim>(),

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.