Block distribution of a dense global index range [0, n) over the ranks of a communicator: rank r owns [begin(r), end(r)). More...
#include <MFEMDistributedGraph.h>
Public Member Functions | |
| BlockDistribution (std::int64_t n, int nprocs) | |
| int | owner (std::int64_t g) const |
Owning rank of global id g, which must lie in [0, n). | |
| std::int64_t | begin (int rank) const |
| std::int64_t | end (int rank) const |
| std::int64_t | size () const |
Private Attributes | |
| std::int64_t | _n |
| int | _nprocs |
| Number of ranks the ids are distributed over. | |
Block distribution of a dense global index range [0, n) over the ranks of a communicator: rank r owns [begin(r), end(r)).
Used to give every global vertex or component id a unique owning rank without any replicated lookup table.
Definition at line 31 of file MFEMDistributedGraph.h.
| Moose::MFEM::BlockDistribution::BlockDistribution | ( | std::int64_t | n, |
| int | nprocs | ||
| ) |
Definition at line 44 of file MFEMDistributedGraph.C.
| std::int64_t Moose::MFEM::BlockDistribution::begin | ( | int | rank | ) | const |
Definition at line 54 of file MFEMDistributedGraph.C.
Referenced by Moose::MFEM::distributedSpanningForest(), and Moose::MFEM::fetchLabels().
| std::int64_t Moose::MFEM::BlockDistribution::end | ( | int | rank | ) | const |
Definition at line 60 of file MFEMDistributedGraph.C.
Referenced by Moose::MFEM::distributedSpanningForest().
| int Moose::MFEM::BlockDistribution::owner | ( | std::int64_t | g | ) | const |
Owning rank of global id g, which must lie in [0, n).
Definition at line 47 of file MFEMDistributedGraph.C.
Referenced by Moose::MFEM::distributedSpanningForest(), and Moose::MFEM::fetchLabels().
|
inline |
Definition at line 40 of file MFEMDistributedGraph.h.
|
private |
|
private |
Number of ranks the ids are distributed over.
Definition at line 45 of file MFEMDistributedGraph.h.