From 55b0fe17d7a18affb2168a2258d5cc612ffab02b Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 25 Feb 2019 16:20:43 +0100 Subject: [PATCH] use mesh communicator for rank/size --- libsrc/meshing/clusters.cpp | 3 +++ libsrc/meshing/topology.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/libsrc/meshing/clusters.cpp b/libsrc/meshing/clusters.cpp index 52e5eec1..07db0247 100644 --- a/libsrc/meshing/clusters.cpp +++ b/libsrc/meshing/clusters.cpp @@ -26,6 +26,9 @@ namespace netgen const MeshTopology & top = mesh.GetTopology(); + auto id = this->mesh.GetCommunicator().Rank(); + auto ntasks = this->mesh.GetCommunicator().Size(); + bool hasedges = top.HasEdges(); bool hasfaces = top.HasFaces(); diff --git a/libsrc/meshing/topology.cpp b/libsrc/meshing/topology.cpp index dc57c347..f5881796 100644 --- a/libsrc/meshing/topology.cpp +++ b/libsrc/meshing/topology.cpp @@ -338,6 +338,8 @@ namespace netgen // ParallelMeshTopology & paralleltop = mesh.GetParallelTopology(); #endif + auto id = this->mesh->GetCommunicator().Rank(); + auto ntasks = this->mesh->GetCommunicator().Size(); if (timestamp > mesh->GetTimeStamp()) return;