← Back to team overview

dolfin team mailing list archive

Re: How to combine component Functions into a VectorFunction

 

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


References