Re: [Dolfin] How to combine component Functions into a VectorFunction

2011-11-23 Thread Anders Logg
On Wed, Nov 23, 2011 at 07:06:58PM +0100, Joachim Berdal Haga wrote: > I was wondering if it's possible to combine components into a vector-valued > function safely. > > The sub-functions returned by Function.split() do not allow assignment, and > index tricks like > vf.vector()[d*len(f):(d+1)

[Dolfin] How to combine component Functions into a VectorFunction

2011-11-23 Thread Joachim Berdal Haga
I was wondering if it's possible to combine components into a vector-valued function safely. The sub-functions returned by Function.split() do not allow assignment, and index tricks like vf.vector()[d*len(f):(d+1)*len(f)] = f don't work in parallel (and are rather too intimate with the DOLFIN de