← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Permit interpolation of functions on non-matching grids.

 

Would it be more natural to have the following interface for interpolation:

  V.interpolate(v, w);

corresponding to w = pi_h(v).

?

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.

-- 
Anders


On Wed, Jun 17, 2009 at 11:46:19AM +0200, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
> 
> changeset:   6311:548b6ddaffc4d16b110d5d45c2c828f06eea7e4e
> tag:         tip
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Wed Jun 17 10:46:05 2009 +0100
> files:       ChangeLog dolfin/function/FunctionSpace.cpp dolfin/function/FunctionSpace.h dolfin/io/XMLFile.cpp sandbox/nonmatching/main.cpp
> description:
> Permit interpolation of functions on non-matching grids.
> 
> This requires some testing still and will only work for meshes with the same boundary.
> 
> 
> changeset:   6310:e72349f28358a26f0b7d4427554dd99c3de17dd4
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Wed Jun 17 08:14:45 2009 +0100
> files:       dolfin/io/GenericFile.cpp
> description:
> Remove unecessary header file.
> 
> 
> changeset:   6309:4b0adb7e4b35c5938ef4dff425e3390067dc114e
> user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> date:        Wed Jun 17 08:12:01 2009 +0100
> files:       ChangeLog dolfin/function/Function.cpp dolfin/function/Function.h dolfin/function/SpecialFunctions.cpp dolfin/function/SpecialFunctions.h dolfin/io/File.h dolfin/io/GenericFile.cpp dolfin/io/GenericFile.h
> description:
> Remove Function::Function(std::string) and remove some io functions.
> 
> ----------------------------------------------------------------------
> For more details, visit http://www.fenics.org/hg/dolfin
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev

Attachment: signature.asc
Description: Digital signature


Follow ups

References