[Dune] Dune::IdSet

Guo Hua hua.guo at inf.ethz.ch
Mon Feb 15 12:40:59 CET 2010


Hi Oliver

Thank you. I see. 
What I want to do is to have a local id sets and global id sets only on the gridleaf.
for the local id sets. I think using the the function leafIndexSet() is OK?
But how to get a global id set, since I want the id should be consecutive. So globalIdSet()
may be not OK?

Cheers
Hua




-----Original Message-----
From: Oliver Sander [mailto:sander at mi.fu-berlin.de]
Sent: Mon 2/15/2010 12:15 PM
To: Guo  Hua
Cc: dune at dune-project.org
Subject: Re: [Dune] Dune::IdSet
 
Hi Hua!
Global ids are unique across all processors.  Local ids are unique
only on each processor.  Hence you may have two entities on two
different processors with the same local id.  If your programm runs
on a single processor there is no difference.

best,
Oliver

Guo Hua schrieb:
> Hi everyone
>
> I feel confused when reading the explanations of these two functions
> in the class Dune::Grid< dim, dimworld, ct, GridFamily >.
>
> const Codim< 0 >::GlobalIdSet & globalIdSet () const
>  	return const reference to the grids global id set
>
> const Codim< 0 >::LocalIdSet & localIdSet () const
>  	return const reference to the grids local id set 
>
> Would you mind to make it more clear? Especially the differences of two.
> Thanks a lot!
>
> Cheers,
> Hua
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>   


-- 
************************************************************************
* Oliver Sander                ** email: sander at mi.fu-berlin.de        *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75348           *
* Institut für Mathematik      ** URL  : page.mi.fu-berlin.de/~sander  *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************






More information about the Dune mailing list