← Back to team overview

dolfin team mailing list archive

Re: MeshDomain

 

On 11 February 2013 09:39, Johan Hake <hake.dev@xxxxxxxxx> wrote:
> 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?
>

I guess just because it could be (i.e. it doesn't access member data).

Garth

> 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
>>
>
>
> _______________________________________________
> 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