[Dune] How to get a unique index?

Patrick Leidenberger patrick.leidenberger at psi.ch
Fri Jan 26 09:03:11 CET 2007


Hi Oliver, hi Andreas,

Is there a method to communicate a list with index of type IdType?

I want to make a unique list of entities over all processes.

Best Regards

Patrick

Andreas Dedner schrieb:
>  > Hi Patrick!
>> That's what the GlobalIdSet is good for.  It has a method id() which
>> takes an Entity of arbitrary codim as its argument.  The return type
>> is an implementation-dependent type which you can get from the class.
>>
> But its not an integer! I just noticed that the documentation is
> not correct here - its says an id is a mapping from entity to
> integer - but as far as I remember its only a class with
> <,== i.e. something one can put into a map.
> Was that not the idea?
> Andreas
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://www.dune-project.org/cgi-bin/mailman/listinfo/dune





More information about the Dune mailing list