Devansh:

My questions are
1. Which of these two approaches is considered the correct or safest way in deal.II when handling a mix of primitive and non-primitive elements in an hp context?

You can go either way, and at least for the element you have, it shouldn't make a difference. (I assume you already tried that out.) I don't think this is a performance critical operation, so that's not a consideration either. My personal choice would be the second one where the if-condition picks out a specific element by index, rather than ask about certain properties of the element. That's because if you extend the element by additional base elements, the if-condition in your first approach may or may not trigger for the additional element; the second approach seems safer in this regard.


2. I am also aware of face_system_to_base_index(i). How does this function differ from the 2 functions used above in this context and would it be a better alternative?

face_system_to_base_index() basically combines the actions of face_to_cell_index() and system_to_base_index(). From system_to_base_index(), you can then determine system_to_component_index() or system_to_block_index(). So there is no conceptual difference.

Best
 W.

--
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 visit 
https://groups.google.com/d/msgid/dealii/e7aa8f54-3c0c-4e87-94e3-7520a2261ea1%40colostate.edu.

Reply via email to