On 9/14/24 08:04, Praveen C wrote:
unsigned int ii = (i < n_cell_dofs) ? i : i - n_cell_dofs;
const auto c =
fe_face_values.get_fe().system_to_component_index(ii).first;
Praveen:
this makes the assumption that you first have the DoFs from one side, and then
the ones from the other side. This may be true in some cases (including,
perhaps, yours) but it is not one that you should rely on unless you have a
way of asserting that your assumption is correct.
I don't think we have a good way of querying this information at the moment.
You might have to ask for the DoF indices of both cells, and then of the
FEInterfaceValues object, and compare these indices so that when you need
information for the FEInterfaceValues object, you know which of the two cells
to ask and how.
I think a better way would actually be to just implement this sort of
functionality in FEInterfaceValues to begin with. The class is not very
difficult to understand, and it shouldn't be very difficult to implement what
you need. The usual applies: We'd love to have a patch that we can incorporate
into the library!
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/80531e2b-863d-45b5-a0fa-68859f69181e%40colostate.edu.