From 3de07c25ab72e06ef46bfefbdbe5ccf9671244be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 25 Apr 2019 22:47:39 +0200 Subject: [PATCH] little fix for distributing 2d meshes --- libsrc/meshing/parallelmesh.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index 47d3ad21..b1c60ac1 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -873,8 +873,6 @@ namespace netgen *testout << "got " << numvert << " vertices" << endl; { - Element el(4); - Array elarray; MyMPI_Recv (elarray, 0, MPI_TAG_MESH+2, comm); @@ -883,9 +881,9 @@ namespace netgen for (int ind = 0, elnum = 1; ind < elarray.Size(); elnum++) { paralleltop->SetLoc2Glob_VolEl ( elnum, elarray[ind++]); - + + Element el(elarray[ind++]); el.SetIndex(elarray[ind++]); - el.SetNP(elarray[ind++]); for ( int j = 0; j < el.GetNP(); j++) el[j] = glob2loc_vert_ht.Get (elarray[ind++]);