[Dune] Insertion index of entity with codim 0 after refine
Agnese, Marco
m.agnese13 at imperial.ac.uk
Wed Mar 5 13:37:14 CET 2014
Hello DUNEers,
I have a question about the method Dune::GridFactoryInterface< GridType >::insertionIndex(const typename Codim< 0 >::Entity & entity).
Let's suppose that I create a grid using the grid factory, the method returns me the insertion position. If I modify the grid (refine) and I take an entity in the leaves, what happens to the insertion index of the entity in the macrogrid which originates the entity in the leaves? In other words, the insertion index of an entity in the macrogrid is always the same also after a refinement or it may change?
Because I find out that the method Dune::GridFactoryInterface< GridType >::insertionIndex(const typename GridType::LeafIntersection & intersection) does not always preserve the index in the macrogrid after a refinement (sometimes it does sometimes it does not, I do not understand why it has such a behavior ).
Thank you,
Marco Agnese
More information about the Dune
mailing list