Bridge++  Ver. 2.0.2
Communicator_impl Class Reference

MPI-realisation of communicator class implementation. More...

#include <communicator_mpi.h>

Classes

class  Base
 
class  Layout
 Layout class for logical organisation of parallel nodes. More...
 

Static Public Member Functions

static int init (int *pargc, char ***pargv)
 
static int finalize ()
 
static void abort ()
 
static int setup (int Ninstance=1)
 
static int setup (const std::vector< int > &lattice_size, std::vector< int > &grid_size, int Ninstance=1)
 
static bool is_primary ()
 
static int self ()
 
static int size ()
 
static int sync ()
 
static int sync_usleep ()
 
static double get_time ()
 
static int status ()
 
static int broadcast_string (int count, string &data, int sender)
 
static int init (int *pargc, char ***pargv)
 
static int finalize ()
 
static void abort ()
 
static int setup (int Ninstance=1)
 
static int setup (const std::vector< int > &lattice_size, std::vector< int > &grid_size, int Ninstance=1)
 
static bool is_primary ()
 
static int self ()
 
static int size ()
 
static int sync ()
 
static int sync_usleep ()
 
static double get_time ()
 
static int status ()
 
static int broadcast_string (int count, string &data, int sender)
 

Private Member Functions

 Communicator_impl ()
 
 Communicator_impl (const Communicator_impl &)
 
Communicator_imploperator= (const Communicator_impl &)
 
 ~Communicator_impl ()
 
 Communicator_impl ()
 
 Communicator_impl (const Communicator_impl &)
 
Communicator_imploperator= (const Communicator_impl &)
 
 ~Communicator_impl ()
 

Static Private Attributes

static int m_grid_rank = 0
 
static int m_grid_size = 1
 
static MPI_Comm m_comm
 
static char default_grid_map [16] = "xyzt"
 

Detailed Description

MPI-realisation of communicator class implementation.

Communicator_impl class provides implementation of communication between parallel processes using MPI. Interface is basically the same as the abstract communicator class.

Definition at line 32 of file communicator_mpi.h.

Constructor & Destructor Documentation

◆ Communicator_impl() [1/4]

Communicator_impl::Communicator_impl ( )
inlineprivate

Definition at line 95 of file communicator_mpi.h.

◆ Communicator_impl() [2/4]

Communicator_impl::Communicator_impl ( const Communicator_impl )
inlineprivate

Definition at line 96 of file communicator_mpi.h.

◆ ~Communicator_impl() [1/2]

Communicator_impl::~Communicator_impl ( )
inlineprivate

Definition at line 99 of file communicator_mpi.h.

◆ Communicator_impl() [3/4]

Communicator_impl::Communicator_impl ( )
inlineprivate

Definition at line 95 of file communicator_mpi.h.

◆ Communicator_impl() [4/4]

Communicator_impl::Communicator_impl ( const Communicator_impl )
inlineprivate

Definition at line 96 of file communicator_mpi.h.

◆ ~Communicator_impl() [2/2]

Communicator_impl::~Communicator_impl ( )
inlineprivate

Definition at line 99 of file communicator_mpi.h.

Member Function Documentation

◆ abort() [1/2]

void Communicator_impl::abort ( )
static

Definition at line 159 of file communicator_mpi.cpp.

◆ abort() [2/2]

static void Communicator_impl::abort ( )
static

◆ broadcast_string() [1/2]

int Communicator_impl::broadcast_string ( int  count,
string &  data,
int  sender 
)
static

Definition at line 332 of file communicator_mpi.cpp.

◆ broadcast_string() [2/2]

static int Communicator_impl::broadcast_string ( int  count,
string &  data,
int  sender 
)
static

◆ finalize() [1/2]

static int Communicator_impl::finalize ( )
static

◆ finalize() [2/2]

int Communicator_impl::finalize ( )
static

Definition at line 78 of file communicator_mpi.cpp.

◆ get_time() [1/2]

double Communicator_impl::get_time ( )
static

Definition at line 368 of file communicator_mpi.cpp.

◆ get_time() [2/2]

static double Communicator_impl::get_time ( )
static

◆ init() [1/2]

int Communicator_impl::init ( int *  pargc,
char ***  pargv 
)
static

Definition at line 38 of file communicator_mpi.cpp.

◆ init() [2/2]

static int Communicator_impl::init ( int *  pargc,
char ***  pargv 
)
static

◆ is_primary() [1/2]

static bool Communicator_impl::is_primary ( )
static

◆ is_primary() [2/2]

bool Communicator_impl::is_primary ( )
static

Definition at line 169 of file communicator_mpi.cpp.

◆ operator=() [1/2]

Communicator_impl& Communicator_impl::operator= ( const Communicator_impl )
private

◆ operator=() [2/2]

Communicator_impl& Communicator_impl::operator= ( const Communicator_impl )
private

◆ self() [1/2]

int Communicator_impl::self ( )
static

Definition at line 176 of file communicator_mpi.cpp.

◆ self() [2/2]

static int Communicator_impl::self ( )
static

◆ setup() [1/4]

static int Communicator_impl::setup ( const std::vector< int > &  lattice_size,
std::vector< int > &  grid_size,
int  Ninstance = 1 
)
static

◆ setup() [2/4]

int Communicator_impl::setup ( const std::vector< int > &  lattice_size,
std::vector< int > &  grid_size,
int  Ninstance = 1 
)
static

Definition at line 121 of file communicator_mpi.cpp.

◆ setup() [3/4]

int Communicator_impl::setup ( int  Ninstance = 1)
static

Definition at line 86 of file communicator_mpi.cpp.

◆ setup() [4/4]

static int Communicator_impl::setup ( int  Ninstance = 1)
static

◆ size() [1/2]

int Communicator_impl::size ( )
static

Definition at line 183 of file communicator_mpi.cpp.

◆ size() [2/2]

static int Communicator_impl::size ( )
static

◆ status() [1/2]

int Communicator_impl::status ( )
static

Definition at line 376 of file communicator_mpi.cpp.

◆ status() [2/2]

static int Communicator_impl::status ( )
static

◆ sync() [1/2]

static int Communicator_impl::sync ( )
static

◆ sync() [2/2]

int Communicator_impl::sync ( )
static

Definition at line 216 of file communicator_mpi.cpp.

◆ sync_usleep() [1/2]

static int Communicator_impl::sync_usleep ( )
static

◆ sync_usleep() [2/2]

int Communicator_impl::sync_usleep ( )
static

Definition at line 225 of file communicator_mpi.cpp.

Member Data Documentation

◆ default_grid_map

static char Communicator_impl::default_grid_map = "xyzt"
staticprivate

Definition at line 114 of file communicator_mpi.h.

◆ m_comm

static MPI_Comm Communicator_impl::m_comm
staticprivate

Definition at line 112 of file communicator_mpi.h.

◆ m_grid_rank

static int Communicator_impl::m_grid_rank = 0
staticprivate

Definition at line 109 of file communicator_mpi.h.

◆ m_grid_size

static int Communicator_impl::m_grid_size = 1
staticprivate

Definition at line 110 of file communicator_mpi.h.


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