[Dune] How to iterate over the vertices of an element?
Arne Rekdal
arne at stud.ntnu.no
Mon Nov 3 11:03:47 CET 2008
Hello.
In my code I have an expression like this:
const int dim=2;
for (ElementIterator it=grid.template leafbegin<0>(); it<grid.template
leafend<0>(); ++it){
// Here I want to iterate over the vertices for this element
( Entities of codim 2 restricted on this element)
}
I need the entities, so the the coordinates of each vertex (it-
>geometry()[i]) is not enough. How can I do this?
Thank you.
Greetings
Arne Rekdal
More information about the Dune
mailing list