ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleBase::CommunicationDomain Class Reference

#include <parallel_cell.h>

Collaboration diagram for ModuleBase::CommunicationDomain:

Public Member Functions

 CommunicationDomain ()=default
void initialize (MPI_Comm communicator)
MPI_Comm communicator () const
int rank () const
int size () const
int max (int value) const
int sum (int value) const
void sum (int *values, int count) const
void sum (double *values, int count) const
double max (double value) const
std::string gather_text (const std::string &value, int maximum_count) const

Private Attributes

MPI_Comm communicator_ = MPI_COMM_NULL
int rank_ = 0

Constructor & Destructor Documentation

◆ CommunicationDomain()

ModuleBase::CommunicationDomain::CommunicationDomain ( )
default
Here is the call graph for this function:

Member Function Documentation

◆ communicator()

MPI_Comm ModuleBase::CommunicationDomain::communicator ( ) const
Here is the caller graph for this function:

◆ gather_text()

std::string ModuleBase::CommunicationDomain::gather_text ( const std::string & value,
int maximum_count ) const

Gather one bounded text batch on rank zero; other ranks receive an empty string. maximum_count bounds both local payloads and their total in MPI count units.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

void ModuleBase::CommunicationDomain::initialize ( MPI_Comm communicator)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ max() [1/2]

double ModuleBase::CommunicationDomain::max ( double value) const

◆ max() [2/2]

int ModuleBase::CommunicationDomain::max ( int value) const
Here is the caller graph for this function:

◆ rank()

int ModuleBase::CommunicationDomain::rank ( ) const
Here is the caller graph for this function:

◆ size()

int ModuleBase::CommunicationDomain::size ( ) const
Here is the caller graph for this function:

◆ sum() [1/3]

void ModuleBase::CommunicationDomain::sum ( double * values,
int count ) const

◆ sum() [2/3]

void ModuleBase::CommunicationDomain::sum ( int * values,
int count ) const

◆ sum() [3/3]

int ModuleBase::CommunicationDomain::sum ( int value) const
Here is the caller graph for this function:

Member Data Documentation

◆ communicator_

MPI_Comm ModuleBase::CommunicationDomain::communicator_ = MPI_COMM_NULL
private

◆ rank_

int ModuleBase::CommunicationDomain::rank_ = 0
private

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