[bugfix]Various fixes for DataCollector implementations
This fixes various bugs in DataCollector
making them unusable for certain GeometryType
combinations:
- Fix
DiscontinuousDataCollector
for permutedGeometryTypes
. There was one permutation missing inDiscontinuousDataCollector
. Hence the elements where distorted if the permutation is not trivial, e.g. for quads and hexahedra. - Fix
DiscontinuousLagrangeDataCollector
for mixed grids. Indices in theIndexSet
s of a grid are only unique wrt. theGeometryType
. Hence one has to compute perGeometryType
offsets for mixed grids. Here, these offsets will depend on the size of the local point set. This can easily be done by replacing theIndexSet
by a mapper using a layout which associated blocks of appropriate size to each cellGeometryType
. - Fix
LagrangeDataCollector
for mixed grids analogously toDiscontinuousLagrangeDataCollector
.
Fixes #8 (closed).
Edited by Carsten Gräser