← Back to team overview

dolfin team mailing list archive

Re: MeshDomain

 

While trying to add mesh to MeshDomains I get an error because the method:

  MeshDomains::mesh_function

is static preventing me to access member data.

Why is this method static?

Johan

On 02/11/2013 09:00 AM, Johan Hake wrote:
> I am adding some functionality to MeshDomains, (actually to SubMesh,
> which soon also propagates MeshDomains to the new mesh), and wonder if
> there where any good reasons why a MeshDomain does not have a pointer to
> the parent mesh?
> 
> If such was provided during construction we could skip the annoying mesh
> argument in:
> 
>   facets_domains = mesh.domains().facet_domains(mesh)
> 
> Johan
> 



Follow ups

References