Anders Logg wrote:
> Would it be more natural to have the following interface for interpolation:
> 
>   V.interpolate(v, w);
> 
> corresponding to w = pi_h(v).
> 
> ?
>

Yes, or

   w.interpolate(v)

I'm still working on it.

> This interpolates v into the function space and sets the coefficients
> for w. This function can then detect whether or not v and w are on the
> same mesh and choose the appropriate way to do interpolation.
> 
> We can also have a special case like
> 
>  V.interpolate(v);
> 
> which will take v and replace it by its interpolation.
>

Don't we pretty much have this already?

   v.interpolate();

Garth

> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@fenics.org
> http://www.fenics.org/mailman/listinfo/dolfin-dev


_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@fenics.org
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to