]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix comments in @code blocks in matrix_free headers 6821/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 21 Jun 2018 21:01:06 +0000 (23:01 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 21 Jun 2018 21:01:06 +0000 (23:01 +0200)
include/deal.II/matrix_free/fe_evaluation.h
include/deal.II/matrix_free/operators.h

index b6f868076433af7ba8ba44729893bd2245971d79..e677010dd6c304217d2e5a42a41d92b6cd6dfb95 100644 (file)
@@ -1658,8 +1658,9 @@ protected:
  *           phi.quadrature_point(q_index);
  *         // Need to evaluate function for each component in VectorizedArray
  *         VectorizedArray<double> f_value;
- *         for (unsigned int v=0; v<VectorizedArray<double>::n_array_elements;
- * ++v)
+ *         for (unsigned int v=0;
+ *              v<VectorizedArray<double>::n_array_elements;
+ *              ++v)
  *           {
  *             Point<dim> p;
  *             for (unsigned int d=0; d<dim; ++d)
@@ -1754,7 +1755,8 @@ protected:
  *       {
  *         const unsigned int n_items =
  *           i+VectorizedArray<double>::n_array_elements > dofs_per_cell ?
- *           (dofs_per_cell - i) : VectorizedArray<double>::n_array_elements;
+ *           (dofs_per_cell - i) :
+ *           VectorizedArray<double>::n_array_elements;
  *
  *         // Set n_items unit vectors
  *         for (unsigned int j=0; j<dofs_per_cell; ++j)
@@ -1984,9 +1986,8 @@ protected:
  * VectorizedArray@<double@> a tensor is returned,
  *
  * @code
- * get_value -> Tensor<1,n_components,VectorizedArray<double> >
- * get_gradient -> Tensor<1,n_components,Tensor<1,dim,VectorizedArray<double> >
- * >
+ * get_value -> Tensor<1,n_components,VectorizedArray<double>>
+ * get_gradient -> Tensor<1,n_components,Tensor<1,dim,VectorizedArray<double>>
  * @endcode
  *
  * In a similar vein, the submit_value() and submit_gradient() calls take
index a4eb280ca5d4534279382345caa7d2dd70608106..897506eda7ee4996e1d6b7745f7aac2ffd2e3bdb 100644 (file)
@@ -171,7 +171,8 @@ namespace MatrixFreeOperators
    * matrix_free_inhomogeneous.reinit(dof_handler, constraints_no_dirichlet,
    *                                  quadrature, additional_data);
    * operator_inhomogeneous.initialize(matrix_free_inhomogeneous,
-   * selected_blocks); LinearAlgebra::distributed::Vector<double> inhomogeneity;
+   *                                   selected_blocks);
+   * LinearAlgebra::distributed::Vector<double> inhomogeneity;
    * matrix_free_inhomogeneous.initialize_dof_vector(inhomogeneity);
    * constraints_with_dirichlet.distribute(inhomogeneity);
    * operator_inhomogeneous.vmult(system_rhs, inhomogeneity);
@@ -789,7 +790,7 @@ namespace MatrixFreeOperators
      *       fe_eval.reinit(cell);
      *       for (unsigned int q=0; q<n_q_points; ++q)
      *         (*coefficient)(cell,q) =
-     * function.value(fe_eval.quadrature_point(q));
+     *           function.value(fe_eval.quadrature_point(q));
      *     }
      * }
      * @endcode

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.