ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #00168
Re: [HG UFL] Implement extract_component for all element types.
2008/5/27 UFL <ufl@xxxxxxxxxx>:
> Implement extract_component for all element types.
> Still untested but it should work. ;-) See if you
> agree with the current implementation of mixed, vector
> and tensor elements and then we can go ahead and add
> more extensive unit tests.
I think it's great. I've fixed a couple of bugs (still no tests),
and added some minor features.
The issue left to resolve is value_rank() and value_dimension(i) for
MixedElement instances that are not VectorElement or TensorElement
instances. I think we should use the same convention as we use for
ufc::finite_element::value_*, which are essentially the same
functions. The MixedElement.value_rank implemented today (value_rank
== len(subelements)) doesn't make sense, e.g. Taylor-Hood is not a
second order tensor valued element.
--
Martin
References