dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #21922
Re: Passing MeshFunction as shared_ptr
-
To:
dolfin@xxxxxxxxxxxxxxxxxxx
-
From:
"Garth N. Wells" <gnw20@xxxxxxxxx>
-
Date:
Thu, 10 Mar 2011 23:39:52 +0000
-
In-reply-to:
<20110310233839.GK2127@eowyn>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
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 : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
Follow ups
References