Skip to content

Commit 0709f95

Browse files
committed
remove _is_cellwise_constant and _islinear
1 parent c6f579d commit 0709f95

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

python/basix/ufl.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,6 @@ def _is_globally_constant(self) -> bool:
103103
"""Check if the element is a global constant."""
104104
return False
105105

106-
@property
107-
def _is_cellwise_constant(self) -> bool:
108-
"""Check if the basis functions of this element are constant over each cell."""
109-
return self.highest_degree == 0
110-
111-
@property
112-
def _is_linear(self) -> bool:
113-
"""Check if the element is Lagrange degree 1."""
114-
return False
115-
116106
@property
117107
def sub_elements(self) -> _typing.List[_AbstractFiniteElement]:
118108
"""Return a list of sub elements."""
@@ -344,11 +334,6 @@ def __init__(self, element: _basix.finite_element.FiniteElement, gdim: _typing.O
344334

345335
self.element = element
346336

347-
@property
348-
def _is_linear(self) -> bool:
349-
"""Check if the element is Lagrange degree 1."""
350-
return self.element.family == _basix.ElementFamily.P and self.element.degree == 1
351-
352337
@property
353338
def basix_sobolev_space(self):
354339
"""Return a Basix enum representing the underlying Sobolev space."""
@@ -998,11 +983,6 @@ def basix_sobolev_space(self):
998983
"""Basix enum representing the underlying Sobolev space."""
999984
return self.sub_element.basix_sobolev_space
1000985

1001-
@property
1002-
def _is_linear(self) -> bool:
1003-
"""Check if the element is Lagrange degree 1."""
1004-
return self.sub_element._is_linear
1005-
1006986
@property
1007987
def sub_elements(self) -> _typing.List[_ElementBase]:
1008988
"""List of sub elements."""
@@ -1433,11 +1413,6 @@ def _is_globally_constant(self) -> bool:
14331413
"""Check if the element is a global constant."""
14341414
return True
14351415

1436-
@property
1437-
def _is_cellwise_constant(self) -> bool:
1438-
"""Check if the basis functions of this element are constant over each cell."""
1439-
return True
1440-
14411416
def tabulate(self, nderivs: int, points: _npt.NDArray[_np.float64]) -> _npt.NDArray[_np.float64]:
14421417
"""Tabulate the basis functions of the element.
14431418

0 commit comments

Comments
 (0)