Andrew, they are actually stored in the same space, so you can only use either
or. If you have set a user index, the Triangulation will not allow you to access
a user pointer, unless your call clear_user_data() in between.

I'll update the documentation to highlight this fact.

Best,
Guido

Andrew McBride wrote:
> Hi all
> 
> I can't work out why the snippet of code crashes deal with the error message 
> below. If I comment out the line 
> std::cout << cell->user_index() << std::endl;
> it works fine. 
> 
> How are the user_index and the user_pointer related? From the documentation 
> they appear unrelated.
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to