All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PLMD::Atoms::DomainDecomposition Class Reference
Inheritance diagram for PLMD::Atoms::DomainDecomposition:
Inheritance graph
[legend]

Public Member Functions

 operator bool ()
 
 DomainDecomposition ()
 
void enable (Communicator &c)
 
int Get_rank () const
 Obtain the rank of the present process. More...
 
int Get_size () const
 Obtain the number of processes. More...
 
void Set_comm (MPI_Comm)
 Set from a real MPI communicator. More...
 
void Set_comm (void *comm)
 Set from a pointer to a real MPI communicator (C) More...
 
MPI_CommGet_comm ()
 Reference to MPI communicator. More...
 
void Set_fcomm (void *comm)
 Set from a pointer to a real MPI communicator (FORTRAN) More...
 
void Abort (int)
 Wrapper to MPI_Abort. More...
 
void Barrier () const
 Wrapper to MPI_Barrier. More...
 
template<class T >
void Sum (T *, int)
 Wrapper for MPI_Allreduce with MPI_SUM. More...
 
template<class T >
void Allgatherv (const T *, int, T *, const int *, const int *)
 Wrapper for MPI_Allgatherv. More...
 
template<class T >
void Allgather (const T *, int, T *, int)
 
template<class T >
Request Isend (const T *, int, int, int)
 
template<class T >
void Recv (T *, int, int, int, Status &)
 
template<class T >
void Recv (T *, int, int, int)
 
template<class T >
void Bcast (T *, int, int)
 
void Split (int, int, Communicator &) const
 Wrapper to MPI_Comm_split. More...
 

Static Public Member Functions

static bool initialized ()
 Tests if MPI library is initialized. More...
 
static CommunicatorGet_world ()
 Returns MPI_COMM_WORLD if MPI is initialized, otherwise the default communicator. More...
 

Public Attributes

bool on
 
bool async
 
std::vector< int > g2l
 
std::vector
< Communicator::Request
mpi_request_positions
 
std::vector
< Communicator::Request
mpi_request_index
 
std::vector< double > positionsToBeSent
 
std::vector< double > positionsToBeReceived
 
std::vector< int > indexToBeSent
 
std::vector< int > indexToBeReceived
 

Detailed Description

Definition at line 95 of file Atoms.h.

Constructor & Destructor Documentation

PLMD::Atoms::DomainDecomposition::DomainDecomposition ( )
inline

Definition at line 111 of file Atoms.h.

Member Function Documentation

void PLMD::Communicator::Abort ( int  errorcode)
inherited

Wrapper to MPI_Abort.

Definition at line 113 of file Communicator.cpp.

template<class T >
void PLMD::Communicator::Allgather ( const T *  sendbuf,
int  sendcount,
T *  recvbuf,
int  recvcount 
)
inherited

Definition at line 166 of file Communicator.h.

template<class T >
void PLMD::Communicator::Allgatherv ( const T *  sendbuf,
int  sendcount,
T *  recvbuf,
const int *  recvcounts,
const int *  displs 
)
inherited

Wrapper for MPI_Allgatherv.

Definition at line 146 of file Communicator.h.

void PLMD::Communicator::Barrier ( ) const
inherited

Wrapper to MPI_Barrier.

Definition at line 124 of file Communicator.cpp.

template<class T >
void PLMD::Communicator::Bcast ( T *  b,
int  count,
int  root 
)
inherited

Definition at line 134 of file Communicator.h.

void PLMD::Atoms::DomainDecomposition::enable ( Communicator c)

Definition at line 272 of file Atoms.cpp.

MPI_Comm & PLMD::Communicator::Get_comm ( )
inherited

Reference to MPI communicator.

Definition at line 130 of file Communicator.cpp.

int PLMD::Communicator::Get_rank ( ) const
inherited

Obtain the rank of the present process.

Definition at line 48 of file Communicator.cpp.

int PLMD::Communicator::Get_size ( ) const
inherited

Obtain the number of processes.

Definition at line 65 of file Communicator.cpp.

Communicator & PLMD::Communicator::Get_world ( )
staticinherited

Returns MPI_COMM_WORLD if MPI is initialized, otherwise the default communicator.

Definition at line 56 of file Communicator.cpp.

bool PLMD::Communicator::initialized ( )
staticinherited

Tests if MPI library is initialized.

Definition at line 134 of file Communicator.cpp.

template<class T >
Communicator::Request PLMD::Communicator::Isend ( const T *  buf,
int  count,
int  source,
int  tag 
)
inherited

Definition at line 183 of file Communicator.h.

PLMD::Atoms::DomainDecomposition::operator bool ( )
inline

Definition at line 110 of file Atoms.h.

template<class T >
void PLMD::Communicator::Recv ( T *  buf,
int  count,
int  source,
int  tag,
Status status 
)
inherited

Definition at line 200 of file Communicator.h.

template<class T >
void PLMD::Communicator::Recv ( T *  buf,
int  count,
int  source,
int  tag 
)
inherited

Definition at line 215 of file Communicator.h.

void PLMD::Communicator::Set_comm ( MPI_Comm  c)
inherited

Set from a real MPI communicator.

Definition at line 73 of file Communicator.cpp.

void PLMD::Communicator::Set_comm ( void *  comm)
inherited

Set from a pointer to a real MPI communicator (C)

Parameters
commPointer to a C MPI communicator

Definition at line 90 of file Communicator.cpp.

void PLMD::Communicator::Set_fcomm ( void *  comm)
inherited

Set from a pointer to a real MPI communicator (FORTRAN)

Parameters
commPointer to a FORTRAN MPI communicator (INTEGER)

Definition at line 100 of file Communicator.cpp.

void PLMD::Communicator::Split ( int  color,
int  key,
Communicator pc 
) const
inherited

Wrapper to MPI_Comm_split.

Definition at line 172 of file Communicator.cpp.

template<class T >
void PLMD::Communicator::Sum ( T *  b,
int  count 
)
inherited

Wrapper for MPI_Allreduce with MPI_SUM.

Definition at line 124 of file Communicator.h.

Member Data Documentation

bool PLMD::Atoms::DomainDecomposition::async

Definition at line 100 of file Atoms.h.

std::vector<int> PLMD::Atoms::DomainDecomposition::g2l

Definition at line 101 of file Atoms.h.

std::vector<int> PLMD::Atoms::DomainDecomposition::indexToBeReceived

Definition at line 109 of file Atoms.h.

std::vector<int> PLMD::Atoms::DomainDecomposition::indexToBeSent

Definition at line 108 of file Atoms.h.

std::vector<Communicator::Request> PLMD::Atoms::DomainDecomposition::mpi_request_index

Definition at line 104 of file Atoms.h.

std::vector<Communicator::Request> PLMD::Atoms::DomainDecomposition::mpi_request_positions

Definition at line 103 of file Atoms.h.

bool PLMD::Atoms::DomainDecomposition::on

Definition at line 99 of file Atoms.h.

std::vector<double> PLMD::Atoms::DomainDecomposition::positionsToBeReceived

Definition at line 107 of file Atoms.h.

std::vector<double> PLMD::Atoms::DomainDecomposition::positionsToBeSent

Definition at line 106 of file Atoms.h.


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