← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN Function

 

On Monday 15 September 2008 14:29:08 Garth N. Wells wrote:
> Could a Python expert take a look at site-packges/dolfin/function.py?
> The code directly following the comment
>
>   # Special case, Function(element, mesh, x), need to create simple form
> to get arguments
>
> need to be updated but I don't understand it well.

The first special case is for initializing a Function with a given Vector, by 
constructing a dofmap from the handed element.

As constructing a Function from a vector is removed from the cpp interface, 
and we have not, (or have we?) figured out how to wrap a shared_ptr in swig, 
we should probably just remove the first case for now.

Johan


Follow ups

References