mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
use mesh communicator for rank/size
This commit is contained in:
parent
179c3bb02f
commit
55b0fe17d7
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user