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>