From b677ef5e22ea8f61e15c44ffc2576d4609bce097 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 10 Jun 2021 09:53:42 +0200 Subject: [PATCH] Fix RangeException (prepare for local optimizations, with partially filled elementsonpoint table) --- libsrc/meshing/smoothing3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/smoothing3.cpp b/libsrc/meshing/smoothing3.cpp index 79530dbf..b172ddaf 100644 --- a/libsrc/meshing/smoothing3.cpp +++ b/libsrc/meshing/smoothing3.cpp @@ -1476,7 +1476,7 @@ void Mesh :: ImproveMesh (const MeshingParameters & mp, OPTIMIZEGOAL goal) const auto & getDofs = [&] (int i) { i += PointIndex::BASE; - return FlatArray(elementsonpoint[i].Size(), &elementsonpoint[i][0]); + return FlatArray(elementsonpoint[i].Size(), elementsonpoint[i].Data()); }; Array colors(points.Size());