← Back to team overview

dolfin team mailing list archive

Passing MeshFunction as shared_ptr

 

I'm having trouble passing a MeshFunction from the Python interface to
the following function in the C++ Form class:

  void set_cell_domains(boost::shared_ptr<const MeshFunction<uint> > cell_domains);

Any hints on what needs to be changed in the SWIG files?

When I pass a MeshFunction from Python, I get this:

TypeError: in method 'Form_set_cell_domains', argument 2 of type
'boost::shared_ptr< dolfin::MeshFunction< dolfin::uint > const >'

--
Anders



Follow ups