Skip to content

Commit

Permalink
remove _is_cellwise_constant and _islinear
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Sep 22, 2023
1 parent c6f579d commit 0709f95
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions python/basix/ufl.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ def _is_globally_constant(self) -> bool:
"""Check if the element is a global constant."""
return False

@property
def _is_cellwise_constant(self) -> bool:
"""Check if the basis functions of this element are constant over each cell."""
return self.highest_degree == 0

@property
def _is_linear(self) -> bool:
"""Check if the element is Lagrange degree 1."""
return False

@property
def sub_elements(self) -> _typing.List[_AbstractFiniteElement]:
"""Return a list of sub elements."""
Expand Down Expand Up @@ -344,11 +334,6 @@ def __init__(self, element: _basix.finite_element.FiniteElement, gdim: _typing.O

self.element = element

@property
def _is_linear(self) -> bool:
"""Check if the element is Lagrange degree 1."""
return self.element.family == _basix.ElementFamily.P and self.element.degree == 1

@property
def basix_sobolev_space(self):
"""Return a Basix enum representing the underlying Sobolev space."""
Expand Down Expand Up @@ -998,11 +983,6 @@ def basix_sobolev_space(self):
"""Basix enum representing the underlying Sobolev space."""
return self.sub_element.basix_sobolev_space

@property
def _is_linear(self) -> bool:
"""Check if the element is Lagrange degree 1."""
return self.sub_element._is_linear

@property
def sub_elements(self) -> _typing.List[_ElementBase]:
"""List of sub elements."""
Expand Down Expand Up @@ -1433,11 +1413,6 @@ def _is_globally_constant(self) -> bool:
"""Check if the element is a global constant."""
return True

@property
def _is_cellwise_constant(self) -> bool:
"""Check if the basis functions of this element are constant over each cell."""
return True

def tabulate(self, nderivs: int, points: _npt.NDArray[_np.float64]) -> _npt.NDArray[_np.float64]:
"""Tabulate the basis functions of the element.
Expand Down

0 comments on commit 0709f95

Please sign in to comment.