dune-pdelab
2.7-git
|
First, we define some example grid function to integrate.
Computing the integral of a grid function is just a single call:
When run in parallel, this integrates over the local interior domain. So, in that case, we still need to sum over all processes for the full integral.
Full example code: recipe-integrating-grid-functions.cc