On 10/08/2018 04:15 PM, phillip mobley wrote:
> 
> It seems like there are 2 functions that are similar to each other.
>
> What would be the use-case scenario between the DataPostprocessorVector and 
> the get_function_gradient?

The former is only for creating graphical output -- that's a one way street: 
you compute something, you put it into DataOut, which routes the data through 
the DataPostprocessorVector class, and it ends up in a file for visualization. 
There are no ways to intercept that data at any point inbetween.

The latter class is what you want to use if you need the gradient of the 
solution for any other computation, e.g., in nonlinear or time integration 
loops. It provides the gradients at general quadrature points, not only at 
points where you want to output anything.

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                            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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to