Having some DG space V
, interior facet f
and its adjacent cell c
, say
from dolfin import *
mesh = UnitSquareMesh(1, 1)
V = FunctionSpace(mesh, 'DRT', 2)
mesh.init(1, 2)
interior_facets = [f for f in facets(mesh) if not f.exterior()]
f = interior_facets[0]
c = Cell(mesh, f.entities(2)[0])
how can I check which DOFs of V
of cell c
are located on facet f
? Both DOLFIN and UFC DofMap interface does not seem to make this information available, although one may infer it by looking into figures in generated code.
Equivalently, one would like to efficiently implement new method DirichleBC::compute_bc_foo
which would be able to apply BC for DG space on interior facet, just on one side of the facet. Existing geometric
method would apply the BC to both sides.