On 11/24/2016 04:35 PM, Elena Greco wrote:

Moreover I have another problem. I want to loop over cells and calculate
stress at each cell.
so I write below lined in stress_strain_nodal_values method:

const PrimalSolver<dim> &primal_solver = *this;

typename DoFHandler<dim>::active_cell_iterator
                                           cell =
primal_solver.dof_handler.begin_active(),
                                           endc = 
primal_solver.dof_handler.end();
for (; cell!=endc; ++cell)
{
.....
}

Inside loop how can access fe_values from this pointer  to reinit(cell) it for
each cell.

It's hard to tell since you don't show us the whole function. *Which* fe_values object do you want to access?

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