]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More comments.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 1 May 2013 23:03:42 +0000 (23:03 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 1 May 2013 23:03:42 +0000 (23:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@29421 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vector_tools.h

index 36e774ca835a6ada9aef295ef94fedcef4fbf55c..fc583d05b3c79647d4ce341cb45619a7ec5a569a 100644 (file)
@@ -1983,6 +1983,15 @@ namespace VectorTools
    * @f{align*}
    *   \textrm{error} = \sqrt{\sum_K \|u-u_h\|_{L_2(K)}^2}
    * @f}
+   * Obviously, if you are interested in computing the $L_1$ norm of the
+   * error, the correct form of the last two lines would have been
+   * @code
+   *    const double total_local_error = local_errors.l1_norm();
+   *    const double total_global_error
+   *      = Utilities::MPI::sum (total_local_error);
+   * @endcode
+   * instead, and similar considerations hold when computing the $L_\infty$
+   * norm of the error.
    *
    * @note Instantiations for this template
    * are provided for some vector types

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.