SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sirius::la::BLACS_grid Class Reference

BLACS grid wrapper. More...

#include <blacs_grid.hpp>

Public Member Functions

 BLACS_grid (mpi::Communicator const &comm__, int num_ranks_row__, int num_ranks_col__)
 
int context () const
 
auto const & comm () const
 
auto const & comm_row () const
 
auto const & comm_col () const
 
int num_ranks_row () const
 
int rank_row () const
 
int num_ranks_col () const
 
int rank_col () const
 
int cart_rank (int irow__, int icol__) const
 
auto const & mpi_grid () const
 
auto const & rank_map () const
 

Private Member Functions

 BLACS_grid (BLACS_grid const &src)=delete
 
BLACS_gridoperator= (BLACS_grid const &src)=delete
 

Private Attributes

mpi::Communicator const & comm_
 
std::unique_ptr< mpi::Gridmpi_grid_
 
int blacs_handler_ {-1}
 
int blacs_context_ {-1}
 
std::vector< int > rank_map_
 

Detailed Description

BLACS grid wrapper.

Definition at line 42 of file blacs_grid.hpp.

Constructor & Destructor Documentation

◆ BLACS_grid()

sirius::la::BLACS_grid::BLACS_grid ( mpi::Communicator const &  comm__,
int  num_ranks_row__,
int  num_ranks_col__ 
)
inline

Definition at line 64 of file blacs_grid.hpp.

◆ ~BLACS_grid()

sirius::la::BLACS_grid::~BLACS_grid ( )
inline

Definition at line 113 of file blacs_grid.hpp.

Member Function Documentation

◆ context()

int sirius::la::BLACS_grid::context ( ) const
inline

Definition at line 128 of file blacs_grid.hpp.

◆ comm()

auto const & sirius::la::BLACS_grid::comm ( ) const
inline

Definition at line 133 of file blacs_grid.hpp.

◆ comm_row()

auto const & sirius::la::BLACS_grid::comm_row ( ) const
inline

Definition at line 138 of file blacs_grid.hpp.

◆ comm_col()

auto const & sirius::la::BLACS_grid::comm_col ( ) const
inline

Definition at line 143 of file blacs_grid.hpp.

◆ num_ranks_row()

int sirius::la::BLACS_grid::num_ranks_row ( ) const
inline

Definition at line 148 of file blacs_grid.hpp.

◆ rank_row()

int sirius::la::BLACS_grid::rank_row ( ) const
inline

Definition at line 153 of file blacs_grid.hpp.

◆ num_ranks_col()

int sirius::la::BLACS_grid::num_ranks_col ( ) const
inline

Definition at line 158 of file blacs_grid.hpp.

◆ rank_col()

int sirius::la::BLACS_grid::rank_col ( ) const
inline

Definition at line 163 of file blacs_grid.hpp.

◆ cart_rank()

int sirius::la::BLACS_grid::cart_rank ( int  irow__,
int  icol__ 
) const
inline

Definition at line 168 of file blacs_grid.hpp.

◆ mpi_grid()

auto const & sirius::la::BLACS_grid::mpi_grid ( ) const
inline

Definition at line 173 of file blacs_grid.hpp.

◆ rank_map()

auto const & sirius::la::BLACS_grid::rank_map ( ) const
inline

Definition at line 178 of file blacs_grid.hpp.

Member Data Documentation

◆ comm_

mpi::Communicator const& sirius::la::BLACS_grid::comm_
private

Definition at line 45 of file blacs_grid.hpp.

◆ mpi_grid_

std::unique_ptr<mpi::Grid> sirius::la::BLACS_grid::mpi_grid_
private

Definition at line 47 of file blacs_grid.hpp.

◆ blacs_handler_

int sirius::la::BLACS_grid::blacs_handler_ {-1}
private

Definition at line 51 of file blacs_grid.hpp.

◆ blacs_context_

int sirius::la::BLACS_grid::blacs_context_ {-1}
private

Definition at line 54 of file blacs_grid.hpp.

◆ rank_map_

std::vector<int> sirius::la::BLACS_grid::rank_map_
private

Definition at line 56 of file blacs_grid.hpp.


The documentation for this class was generated from the following file: