FEniCS / ufl

UFL - Unified Form Language
https://fenicsproject.org
GNU Lesser General Public License v3.0
97 stars 64 forks source link

`FiniteElementBase` should not be iterable #179

Closed conpierce8 closed 1 year ago

conpierce8 commented 1 year ago

FiniteElementBase is an iterable object in Python because it has a __getitem__ method. This can lead to odd behaviors, e.g. https://github.com/FEniCS/dolfinx/issues/2484.

garth-wells commented 1 year ago

Fixed by #180.