← Back to team overview

dolfin team mailing list archive

Re: Interpolate coefficients for a sub function

 

On Sat, Dec 27, 2008 at 03:18:24PM +0000, Garth N. Wells wrote:
> Any thoughts on an interpolate function in Function which would 
> interpolate coefficients of a sub function only? At the moment, I have a 
> solver in which I can't use SpecialFunction::IsOutFlowFacet because the 
> velocity is a sub function of the solution Function. I can use 
> SubFunction, but SubFunction makes a copy of the vector every time. I 
> can think of a number of other examples in which this would be useful.
> 
> An alternative would be to have a variant on a SubFunction which shares 
> the vector of the Function it is a part of.
> 
> Garth

Is the copying of values expensive? Now that you have added caching of
(sub) function spaces, I imagine the copying should be very fast and
be only a fraction of the cost for calling IsOutflowFacet::eval() on
all cells.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References