mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +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();
|
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();
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user