Function.split() does not work for higher value ranks

Issue #242 closed
Jan Blechta created an issue

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)

  1. Jan Blechta reporter

    @martinal This does not raise now but returns flattened tuple. Is it what is intended?

  2. Log in to comment