To add to what Wolfgang has already said, there’s this entry in our FAQ on this 
topic:
https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators
 
<https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators>


> On 15. Jul 2021, at 17:31, Wolfgang Bangerth <bange...@colostate.edu> wrote:
> 
> On 7/15/21 2:45 AM, Sylvain Mathonnière wrote:
>> *typenameDoFHandler<dim>::active_cell_iteratorcell_2 
>> (cell_1->get_triangulation(), cell_1->level(), cell_1->index(), 
>> dof_handler_2);*
> 
> The compiler error tells you that you need pointers, not references. So this 
> should work:
> 
>  typename DoFHandler<dim>::active_cell_iterator
>     cell_2 (&cell_1->get_triangulation(), cell_1->level(), cell_1->index(),
>             &dof_handler_2);
> 
> 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/53c90809-04b1-c2f0-3d35-ec11726fa46f%40colostate.edu.

-- 
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/5759F5A1-53A7-4978-AA38-A65F431DE3A4%40gmail.com.

Reply via email to