[Dune] How children which are copies of their father handled in DUNE?

Casagrande Raffael raffael.casagrande at sam.math.ethz.ch
Thu Apr 3 11:30:49 CEST 2014


Hello DUNEers,

I have problems to understand how entities which are exact copies of their father are being dealt with in the context of leaf views. In particular consider the following 1D hierarchical grid:

(a)-------------(i)------(b)    level 0
(c)------(d)----(j)               level 1

where (a), ..., (j) denote the nodes of the grid. As far as I understand the following is true:
- node (j) is a copy of it's father (i).
- The leaf view consists of nodes (c), (d), (i), (j), (b) since node (i) belongs to a codim=0 leaf entity.
- The id of node (i) == id of node (j) (global id set)

Is this correct? If so there are a few things which are very unclear to me:
- is the leaf index of node (i) the same as the leaf index of node (j) ? I think this should be the case because of [1] Def. 25, but the dune class documentation seems to suggest the opposite (and is not very clear about this).
- How is the size() method of the leaf view defined for nodes, is leafView().size(nodes) == 5 or == 4?
- How is the size() method of the leaf index set defined for nodes? is leafView().indexSet().size(nodes) == 5 or == 4?

[1] P. Bastian, M. Blatt, A. Dedner, C. Engwer, R. Klöfkorn, M. Ohlberger, O. Sander. A Generic Grid Interface for Parallel and Adaptive Scientific Computing. Part I: Abstract Framework.Computing, 82(2-3), 2008, pp. 103-119.

Thank you very much,
Best regards,
Raffael






More information about the Dune mailing list