use mesh communicator for rank/size

This commit is contained in:
Lukas 2019-02-25 16:20:43 +01:00
parent 179c3bb02f
commit 55b0fe17d7
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,9 @@ namespace netgen
const MeshTopology & top = mesh.GetTopology(); const MeshTopology & top = mesh.GetTopology();
auto id = this->mesh.GetCommunicator().Rank();
auto ntasks = this->mesh.GetCommunicator().Size();
bool hasedges = top.HasEdges(); bool hasedges = top.HasEdges();
bool hasfaces = top.HasFaces(); bool hasfaces = top.HasFaces();

View File

@ -338,6 +338,8 @@ namespace netgen
// ParallelMeshTopology & paralleltop = mesh.GetParallelTopology(); // ParallelMeshTopology & paralleltop = mesh.GetParallelTopology();
#endif #endif
auto id = this->mesh->GetCommunicator().Rank();
auto ntasks = this->mesh->GetCommunicator().Size();
if (timestamp > mesh->GetTimeStamp()) return; if (timestamp > mesh->GetTimeStamp()) return;