From dc4b1c05b97ee0c99fbfc8cf4a3a31e556a6da68 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 26 Apr 2019 09:27:29 +0200 Subject: [PATCH] Handle numbers in correct order (first index, then number of points) --- libsrc/meshing/parallelmesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index b1c60ac1..c8b053a7 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -882,8 +882,9 @@ namespace netgen { paralleltop->SetLoc2Glob_VolEl ( elnum, elarray[ind++]); + int index = elarray[ind++]; Element el(elarray[ind++]); - el.SetIndex(elarray[ind++]); + el.SetIndex(index); for ( int j = 0; j < el.GetNP(); j++) el[j] = glob2loc_vert_ht.Get (elarray[ind++]);