HavoqGT
havoqgt::communicator Class Reference

#include <mpi.hpp>

Public Member Functions

 communicator (MPI_Comm in_comm)
 
 communicator ()
 
MPI_Comm comm () const
 
int size () const
 
int rank () const
 
void barrier () const
 

Private Attributes

MPI_Comm m_comm
 
int m_size
 
int m_rank
 

Detailed Description

Start "new" communicator here

Definition at line 606 of file mpi.hpp.

Constructor & Destructor Documentation

havoqgt::communicator::communicator ( MPI_Comm  in_comm)
inline

Definition at line 608 of file mpi.hpp.

609  : m_comm( in_comm )
610  {
611  CHK_MPI( MPI_Comm_rank(m_comm, &m_rank) );
612  CHK_MPI( MPI_Comm_size(m_comm, &m_size) );
613  }
MPI_Comm m_comm
Definition: mpi.hpp:625
#define CHK_MPI(a)
Definition: mpi.hpp:68
havoqgt::communicator::communicator ( )
inline

Definition at line 615 of file mpi.hpp.

615 {}

Member Function Documentation

void havoqgt::communicator::barrier ( ) const
inline

Definition at line 621 of file mpi.hpp.

621  {
622  MPI_Barrier(m_comm);
623  }
MPI_Comm m_comm
Definition: mpi.hpp:625

Here is the caller graph for this function:

MPI_Comm havoqgt::communicator::comm ( ) const
inline

Definition at line 617 of file mpi.hpp.

617 { return m_comm; }
MPI_Comm m_comm
Definition: mpi.hpp:625
int havoqgt::communicator::rank ( ) const
inline

Definition at line 619 of file mpi.hpp.

619 { return m_rank; }

Here is the caller graph for this function:

int havoqgt::communicator::size ( ) const
inline

Definition at line 618 of file mpi.hpp.

618 { return m_size; }

Here is the caller graph for this function:

Member Data Documentation

MPI_Comm havoqgt::communicator::m_comm
private

Definition at line 625 of file mpi.hpp.

int havoqgt::communicator::m_rank
private

Definition at line 627 of file mpi.hpp.

int havoqgt::communicator::m_size
private

Definition at line 626 of file mpi.hpp.


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