![]() |
Block-Structured AMR Software Framework
|
#include <AMReX_AlgPartition.H>
Public Member Functions | |
| AlgPartition () | |
| Construct an empty partition that must be defined later. | |
| AlgPartition (Long global_size) | |
Evenly partition global_size rows across all ranks. | |
| AlgPartition (Vector< Long > const &rows) | |
Adopt an explicit prefix array rows describing local row extents. | |
| AlgPartition (Vector< Long > &&rows) noexcept | |
Adopt an explicit prefix array rows, transferring ownership. | |
| void | define (Long global_size) |
Recompute an even partition spanning global_size rows. | |
| void | define (Vector< Long > const &rows) |
Replace the partition with the explicit prefix array rows. | |
| void | define (Vector< Long > &&rows) |
Replace the partition, taking ownership of rows. | |
| bool | empty () const |
| True if the partition contains no rows. | |
| Long | operator[] (int i) const |
Starting global row index owned by rank i. | |
| Long | numGlobalRows () const |
| Total number of rows covered by the partition. | |
| int | numActiveProcs () const |
| Number of MPI ranks that own at least one row. | |
| Vector< Long > const & | dataVector () const |
| Underlying prefix array describing row offsets (size nproc+1). | |
| bool | operator== (AlgPartition const &rhs) const noexcept |
| Compare partitions for identical layouts. | |
| bool | operator!= (AlgPartition const &rhs) const noexcept |
| Negation of operator==. | |
| amrex::AlgPartition::AlgPartition | ( | ) |
Construct an empty partition that must be defined later.
|
explicit |
Evenly partition global_size rows across all ranks.
Adopt an explicit prefix array rows describing local row extents.
Adopt an explicit prefix array rows, transferring ownership.
Underlying prefix array describing row offsets (size nproc+1).
| void amrex::AlgPartition::define | ( | Long | global_size | ) |
Recompute an even partition spanning global_size rows.
Replace the partition, taking ownership of rows.
Replace the partition with the explicit prefix array rows.
|
inline |
True if the partition contains no rows.
|
inline |
Number of MPI ranks that own at least one row.
|
inline |
Total number of rows covered by the partition.
|
noexcept |
Negation of operator==.
|
noexcept |
Compare partitions for identical layouts.
Starting global row index owned by rank i.