On 10/03/11 23:38, Anders Logg wrote:
> 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);
>
Change this to
void set_cell_domains(boost::shared_ptr<const MeshFunction<unsigned
int> > cell_domains);
(uint -> unsigned int)
Garth
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : [email protected]
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp