On 03/16/2018 02:38 AM, 'Maxi Miller' via deal.II User Group wrote:
I am calculating two PDEs, containing two variables (using a vector aproach,
as described in
https://www.dealii.org/8.5.0/doxygen/deal.II/group__vector__valued.html). Thus
both variables (or their solution) are stored in the solution-vector. Is there
a way to separate them, so that I can get the maximum value of each variable?
If I call vector.max(), I get the maximum value of both variables combined.
The easiest way may be to partition the vector based on vector component as we
do in a number of tutorial programs.
A different approach is to use DoFTools::extract_dofs() to get a mask that
indicates which DoFs belong to one particular vector components. This mask
then dictates which elements you want to take the maximum over.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.