[Dune] Insertion index of entity with codim 0 after refine

Martin Nolte nolte at mathematik.uni-freiburg.de
Wed Mar 5 13:56:17 CET 2014


Hi Marco,

the insertion index is specified to be only valid until the first grid 
modification (i.e., either adaptation or load balancing).

If you want more, use a std::map to attach the insertion index to the id of 
the macro element / vertex before the first grid modification.

Best,

Martin

On 03/05/2014 01:37 PM, Agnese, Marco wrote:
> 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
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>

-- 
Dr. Martin Nolte <nolte at mathematik.uni-freiburg.de>

Universität Freiburg                                   phone: +49-761-203-5630
Abteilung für angewandte Mathematik                    fax:   +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany




More information about the Dune mailing list