On 7/13/21 4:02 AM, Sylvain Mathonnière wrote:
This sounds like what I need to do indeed. However, I cannot find a function with such arguments in the help of *DoFHandler*. The closest I could find is in *DoFAccessor*

*DoFAccessor (
const Triangulation< dim, spacedim > *  tria,
const int  level,
const int  index,
const DoFHandler< dim, spacedim > *  dof_handler  )*

Is this the one you were refering to ? but then I do not know how to apply it to obtain an iterator "cell_2" on the 2nd cell.

The call was this:
  DoFHandler::active_cell_iterator cell_2 (cell_1->get_triangulation(),
                                           cell_1->level(),
                                           cell_1->index(),
                                           cell_1->get_dof_handler());

Note that it's the *iterator* type I'm using here. The class that's behind this is TriaActiveIterator, which indeed has the constructor you need here.

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/521de33d-64ef-2120-716c-fd4841480917%40colostate.edu.

Reply via email to