On 10/20/21 1:32 PM, Kyle Schwiebert wrote:

error: ‘const class dealii::DoFCellAccessor<dealii::DoFHandler<3, 3>, false>’ has no member named ‘vertex_indices’; did you mean ‘vertex_index’?

The function was only added in a recent deal.II version I believe. What version are you using?


I don't understand the difference between the following code and the double for-loop of step13::PointValueEvaluation::operator()

for (const auto &cell : dof_handler.active_cell_iterators())
{
  // Loop over all vertices in the current cell.
      for (const auto vertex : cell->vertex_indices()){
        // Do some computation with the solution at the vertex.

Indeed, the documentation does not list a member function "vertex_indices()" for the active cell iterator class.

When you write 'cell->', you get an object that is either of type CellAccessor, or DoFCellAccessor, and the former has the function you are looking for.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/ff283624-1f38-5f20-bfe3-2490667da77f%40colostate.edu.

Reply via email to