Don't throw away supporting entities of dofs
Issue #11
new
Information about supporting entities of dofs is thrown away in some subclasses of FiniteElement
, e.g. DiscontinuousLagrange
. The information is readily available - support entities of DiscontinuousLagrange
are the same as Lagrange.entity_dofs()
- but just thrown away.
The information is then needed to be recovered with hacks like FiniteElement.facet_support_dofs()
and dolfin::DirichletBC::compute_bc_geometric
.
Implement FiniteElement.support_entity_dofs()
.
Comments (4)
-
reporter -
reporter - removed responsible
-
FWIW,
FIAT.finite_element
contains the free functionentity_support_dofs
which integrates basis functions on the entity to determine which ones have support. -
This would also help with the solver-side construction of dofmaps, see https://github.com/FEniCS/ffcx/issues/56.
- Log in to comment
It popped out in email discussion that
FiniteElement.facet_support_dofs()
is not fully equivalent. But its use cases can possibly be covered by suggestedFiniteElement.support_entity_dofs()
.