mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Fix RangeException (prepare for local optimizations, with partially filled elementsonpoint table)
This commit is contained in:
parent
6cdfefcc82
commit
b677ef5e22
@ -1476,7 +1476,7 @@ void Mesh :: ImproveMesh (const MeshingParameters & mp, OPTIMIZEGOAL goal)
|
|||||||
const auto & getDofs = [&] (int i)
|
const auto & getDofs = [&] (int i)
|
||||||
{
|
{
|
||||||
i += PointIndex::BASE;
|
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());
|
Array<int> colors(points.Size());
|
||||||
|
Loading…
Reference in New Issue
Block a user