Manual block partitioner. More...
#include <Cabana_Grid_Partitioner.hpp>


Public Member Functions | |
| ManualBlockPartitioner (const std::array< int, NumSpaceDim > &ranks_per_dim) | |
| Constructor. | |
| std::array< int, NumSpaceDim > | ranksPerDimension (MPI_Comm comm, const std::array< int, NumSpaceDim > &) const override |
| Get the MPI ranks per dimension. | |
| void | ownedCellInfo (MPI_Comm cart_comm, const std::array< int, num_space_dim > &global_cells_per_dim, std::array< int, num_space_dim > &owned_num_cell, std::array< int, num_space_dim > &global_cell_offset) const override |
| Get the owned number of cells of the current MPI rank. | |
| std::array< int, num_space_dim > | ownedCellsPerDimension (MPI_Comm cart_comm, const std::array< int, num_space_dim > &global_cells_per_dim) const |
| Get the owned number of cells of the current MPI rank. | |
Public Member Functions inherited from Cabana::Grid::BlockPartitioner< NumSpaceDim > | |
| virtual std::array< int, num_space_dim > | ranksPerDimension (MPI_Comm comm, const std::array< int, num_space_dim > &global_cells_per_dim) const =0 |
| Get the number of MPI ranks in each dimension of the grid. | |
Static Public Attributes | |
| static constexpr std::size_t | num_space_dim = NumSpaceDim |
| Spatial dimension. | |
Static Public Attributes inherited from Cabana::Grid::BlockPartitioner< NumSpaceDim > | |
| static constexpr std::size_t | num_space_dim = NumSpaceDim |
| Spatial dimension. | |
Manual block partitioner.
| NumSpaceDim | Spatial dimension. Assign MPI blocks from a fixed user input. |
|
inline |
Constructor.
| ranks_per_dim | MPI ranks per dimension. |
|
inlineoverridevirtual |
Get the owned number of cells of the current MPI rank.
| cart_comm | The MPI Cartesian communicator for the partitioning. |
| global_cells_per_dim | The number of global cells and the global cell offset in each dimension. |
| owned_num_cell | (Return) The owned number of cells of the current MPI rank in each dimension. |
| global_cell_offset | (Return) The global cell offset of the current MPI rank in each dimension |
Implements Cabana::Grid::BlockPartitioner< NumSpaceDim >.
|
inline |
Get the owned number of cells of the current MPI rank.
| cart_comm | The MPI Cartesian communicator for the partitioning. |
| global_cells_per_dim | The number of global cells in each dimension. |
|
inlineoverride |
Get the MPI ranks per dimension.
| comm | MPI communicator. |