On 11/25/2016 03:20 AM, Elena Greco wrote:


For example inside template <int dim> void
WeightedResidual<dim>::output_solution () const I want to have a loop over
cells and in each cell I want to calculate the stresses.

Already in step-14, similar thing has been done in template <int dim> void
WeightedResidual<dim>::integrate_over_cell (...).
But inside integrate_over_cell it is possible to access fe_values by
cell_data.fe_values because cell_data is passed to this method.

I want to know if it is possible to access cell fe_values by this pointer
inside WeightedResidual<dim>::output_solution () method?

No, this won't work -- neither the WeightedResidual class nor any of its base classes have an FEValues member variable.

You will have to create such an object wherever you need it. I would suggest you create it locally in the `output_solution()` function where you want to do these computations.

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