FEniCS / dolfinx

Next generation FEniCS problem solving environment
https://fenicsproject.org
GNU Lesser General Public License v3.0
792 stars 182 forks source link

Start simplification and consistency fixes for `fem::FiniteElement` #3502

Closed garth-wells closed 2 weeks ago

garth-wells commented 2 weeks ago

fem::FiniteElement and fem::FunctionSpace are in a bit of a mess with respect to block size, value_shape and mixed elements. It's all a bit muddled. This is a first step of several to straighten things out. This change makes fem::FiniteElement::_reference_value_shape optional - it takes on a value only when it makes sense and when needed, i.e. not for mixed elements.