Adding the & did the trick indeed. Thank you. Thank you as well for the FAQ 
entry on this. I completely overlooked it...

Best,

Sylvain

El viernes, 16 de julio de 2021 a la(s) 07:22:25 UTC+2, Jean-Paul Pelteret 
escribió:

> 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
>
>
> On 15. Jul 2021, at 17:31, Wolfgang Bangerth <[email protected]> 
> 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:                 [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/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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/d664107d-cc5d-4f26-a543-86c16a6508fdn%40googlegroups.com.

Reply via email to