GridFactory should export element permutation
Summary
When creating a grid using a grid factory, the element numbering put into the factory is not necessarily the numbering ending up in the created grid, e.g. ALUGrid
performs some renumbering - I think to guarantee that the grid can always be refined by bisection afterwards. This renumbering is not directly exported but is required for some applications, e.g., when we also have stored a finite element basis associated to the local vertices, or a geometry mapping. While we have the insertionIndex
of elements and vertices we can compute the element permutation afterwards, but one always has to think about this again how to do it without comparing coordinates.
- Is there an easy way to extract this permutation that I am simply not aware of?
- Would this be a useful interface extension of the
GridFactory
or better a utility next to it?