]> https://gitweb.dealii.org/ - dealii.git/commitdiff
About compute_mean_value 1709/head
authorYY <yytamu@gmail.com>
Sat, 3 Oct 2015 03:16:51 +0000 (22:16 -0500)
committerYY <yytamu@gmail.com>
Sat, 3 Oct 2015 03:16:51 +0000 (22:16 -0500)
1/|\Omega| is missing, is it right?

include/deal.II/numerics/vector_tools.h

index 5385fbfd2e4d76a40caee05d6166d8f9f98febee..db9f9fe2350fb7160637869c10515063a0f43814 100644 (file)
@@ -2308,7 +2308,7 @@ namespace VectorTools
    * Compute the mean value of one component of the solution.
    *
    * This function integrates the chosen component over the whole domain and
-   * returns the result, i.e. it computes $\int_\Omega [u_h(x)]_c \; dx$ where
+   * returns the result, i.e. it computes $\frac{1}{|\Omega|}\int_\Omega [u_h(x)]_c \; dx$ where
    * $c$ is the vector component and $u_h$ is the function representation of
    * the nodal vector given as fourth argument. The integral is evaluated
    * numerically using the quadrature formula given as third argument.

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.