Skip to content

Commit

Permalink
rename _cell -> _cell_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 14, 2023
1 parent b5da8c6 commit 1b7bc2f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions python/basix/ufl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,7 @@ def __init__(self, cell: _basix.CellType, value_shape: _typing.Tuple[int, ...],
self._points = points
self._weights = weights
repr = f"QuadratureElement({cell.name}, {points!r}, {weights!r}, {mapname})"
print(repr)

self._cell = cell
self._cell_type = cell
self._entity_counts = [len(i) for i in _basix.topology(cell)]

super().__init__(repr, "quadrature element", cell.name, value_shape, len(points), mapname=mapname)
Expand Down Expand Up @@ -1338,7 +1336,7 @@ def element_family(self) -> _typing.Union[_basix.ElementFamily, None]:
@property
def cell_type(self) -> _basix.CellType:
"""Basix cell type used to initialise the element."""
return self._cell
return self._cell_type

@property
def discontinuous(self) -> bool:
Expand Down Expand Up @@ -1370,7 +1368,7 @@ class _RealElement(_ElementBase):

def __init__(self, cell: _basix.CellType, value_shape: _typing.Tuple[int, ...]):
"""Initialise the element."""
self._cell = cell
self._cell_type = cell
tdim = len(_basix.topology(cell)) - 1

super().__init__(
Expand Down Expand Up @@ -1502,7 +1500,7 @@ def element_family(self) -> _typing.Union[_basix.ElementFamily, None]:
@property
def cell_type(self) -> _basix.CellType:
"""Basix cell type used to initialise the element."""
return self._cell
return self._cell_type

@property
def discontinuous(self) -> bool:
Expand Down

0 comments on commit 1b7bc2f

Please sign in to comment.