Fix RangeException (prepare for local optimizations, with partially filled elementsonpoint table)

This commit is contained in:
Matthias Hochsteger 2021-06-10 09:53:42 +02:00
parent 6cdfefcc82
commit b677ef5e22

View File

@ -1476,7 +1476,7 @@ void Mesh :: ImproveMesh (const MeshingParameters & mp, OPTIMIZEGOAL goal)
const auto & getDofs = [&] (int i)
{
i += PointIndex::BASE;
return FlatArray<int>(elementsonpoint[i].Size(), &elementsonpoint[i][0]);
return FlatArray<int>(elementsonpoint[i].Size(), elementsonpoint[i].Data());
};
Array<int> colors(points.Size());