diff --git a/cmake/external_projects/metis.cmake b/cmake/external_projects/metis.cmake index 4b1ba23d..07c88045 100644 --- a/cmake/external_projects/metis.cmake +++ b/cmake/external_projects/metis.cmake @@ -13,6 +13,7 @@ ExternalProject_Add(project_metis -DCMAKE_INSTALL_PREFIX=${METIS_DIR} -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} + -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} UPDATE_COMMAND "" # Disable update BUILD_IN_SOURCE 1 ) diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index c8b053a7..cbbc8d45 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -769,10 +769,11 @@ namespace netgen self.mlbetweennodes = Array,PointIndex::BASE> (0); self.mlparentelement = Array(0); self.mlparentsurfaceelement = Array(0); - self.topology.Update(); self.curvedelems = new CurvedElements (self); self.clusters = new AnisotropicClusters (self); self.ident = new Identifications (self); + self.topology = MeshTopology(*this); + self.topology.Update(); self.BuildElementSearchTree(); // const_cast(*this).DeleteMesh();