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)*len(f)] = f > don't work in parallel (and are rather too intimate with the DOLFIN details > anyway). > > --Â > Joachim.
One way would be to project the components into the vector-valued function, but there might be better ways. -- Anders _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp