This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

difference in behaviour of split

+1 vote

Suppose U belongs to a mixed function space.
Following
solver.solve()
I have U which holds the solution.

Now consider

#  Works
(v, p) = U.split(True)
v_nodal_values = v.vector().array()


# Doesnt work
v, p = split(U)
v_nodal_values = v.vector().array()
AttributeError: 'ListTensor' object has no attribute 'vector'

What is the difference between them ? Where in the documentation could I have found the difference ?

asked Jun 15, 2014 by shriram FEniCS User (1,540 points)
edited Jun 15, 2014 by shriram

1 Answer

+1 vote
 
Best answer

Not sure how well that's documented. I remember this issue has been brought up a few times in this forum. In fact searching for "split" issues on bitbucket returned this

https://bitbucket.org/fenics-project/dolfin/issue/194/split-u-versus-usplit

So that's still work in progress, I suppose.

answered Jul 28, 2014 by Arnd FEniCS Novice (860 points)
selected Jul 28, 2014 by shriram
...