Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 14, 2023
1 parent bb3b0c8 commit 464d5ee
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/basix/ufl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,11 +1202,6 @@ def flattened_sub_element_mapping(self) -> _typing.List[int]:
class _QuadratureElement(_ElementBase):
"""A quadrature element."""

_points: _npt.NDArray[_np.float64]
_weights: _npt.NDArray[_np.float64]
_entity_counts: _typing.List[int]
_cellname: str

def __init__(self, cell: _basix.CellType, value_shape: _typing.Tuple[int, ...],
points: _npt.NDArray[_np.float64], weights: _npt.NDArray[_np.float64], mapname: str):
"""Initialise the element."""
Expand Down Expand Up @@ -1343,7 +1338,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 _basix.cell.string_to_type(self._cellname)
return self._cell

@property
def discontinuous(self) -> bool:
Expand Down Expand Up @@ -1507,7 +1502,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 _basix.cell.string_to_type(self._cellname)
return self._cell

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

0 comments on commit 464d5ee

Please sign in to comment.