Skip to content

Commit

Permalink
sobolev_space (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs authored Aug 18, 2022
1 parent 6f0235b commit c9e0227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffcx/element_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def __init__(self, element: ufl.finiteelement.FiniteElementBase):
f"QuadratureElement({element})", "quadrature element", element.cell().cellname(), element.value_shape(),
element.degree())

def sobolev_space(self):
"""Return the underlying Sobolev space."""
return ufl.sobolevspace.L2

def __eq__(self, other) -> bool:
"""Check if two elements are equal."""
return isinstance(other, QuadratureElement) and numpy.allclose(self._points, other._points)
Expand Down

0 comments on commit c9e0227

Please sign in to comment.