Function.split() does not work for higher value ranks
Issue #242
closed
MWE:
from dolfin import *
mesh = UnitSquareMesh(3, 3)
V = TensorFunctionSpace(mesh, 'CG', 1)
u = Function(V)
u.split()
raises AttributeError: 'tuple' object has no attribute 'domain'
. In fact, it would be desirable if it worked for arbitrary ranks. But at first, UFL issue 31 should be solved (in the way @martinal suggested).
Comments (3)
-
reporter -
@blechta I haven't done anything intended to change Function.split().
-
reporter - changed status to closed
Flattening is not satisfactory but at least it can be used now somehow.
- Log in to comment
@martinal This does not raise now but returns flattened tuple. Is it what is intended?