← Back to team overview

dolfin team mailing list archive

Re: suitable container for list of meshes in DOLFIN?

 



Anders Logg wrote:
On Mon, Jan 18, 2010 at 09:47:38PM +0100, Andre Massing wrote:
Hi,

I am looking for suitable container in C++ (list, vector, array,
something ordered, not a set) which is suitable to contain (shared)
pointer or references to meshes *and* is willing to nicely interplay
with the swig built python interface. I just want to pass a list of
meshes to a constructor of a class. Is there any suitable classes
around DOLFIN? Or it is now easy to wrap a say
std::vector<boost::shared_ptr<Mesh> >  or something similiar?

Regards,
Andre

I think the dolfin::Array class is the best option.

Ok, thanks for the pointer (in both senses :), just studied the related program manual pages, but was not sure, whether this is the recommended approach.


I'm not sure of the status of the wrapping of Array to Python but the
idea is that Array should be designed particularly for simple wrapping
to Python. Hake or Garth knows more.

So I will go that direction. Thanks!


--
Anders



References