← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN Function

 



Johan Hake wrote:
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.


We don't need to use a shared_ptr. It's just no longer necessary to pass a Vector. The vector can be accessed after the Function has been created.

Garth

Johan




References