Chi-Tech
|
#include <mpi_info.h>
Public Member Functions | |
MPI_Info (const MPI_Info &)=delete | |
MPI_Info | operator= (const MPI_Info &)=delete |
void | Barrier () const |
Static Public Member Functions | |
static MPI_Info & | GetInstance () noexcept |
static void | Call (int mpi_error_code) |
Data Fields | |
const int & | location_id = location_id_ |
Current process rank. More... | |
const int & | process_count = process_count_ |
Total number of processes. More... | |
const MPI_Comm & | comm = communicator_ |
MPI communicator. More... | |
Protected Member Functions | |
void | SetCommunicator (MPI_Comm new_communicator) |
void | SetLocationID (int in_location_id) |
void | SetProcessCount (int in_process_count) |
Private Member Functions | |
MPI_Info ()=default | |
Private Attributes | |
MPI_Comm | communicator_ = MPI_COMM_WORLD |
int | location_id_ = 0 |
int | process_count_ = 1 |
bool | location_id_set_ = false |
bool | process_count_set_ = false |
Friends | |
class | ::Chi |
An object for storing various MPI states.
Definition at line 14 of file mpi_info.h.
|
privatedefault |
|
delete |
void chi::MPI_Info::Barrier | ( | ) | const |
Calls the generic MPI_Barrier
with the current communicator.
Definition at line 38 of file mpi_info.cc.
|
static |
Definition at line 43 of file mpi_info.cc.
|
staticnoexcept |
Access to the singleton
Definition at line 10 of file mpi_info.cc.
|
protected |
Sets the active communicator
Definition at line 17 of file mpi_info.cc.
|
protected |
Sets the rank.
Definition at line 23 of file mpi_info.cc.
|
protected |
Sets the number of processes in the communicator.
Definition at line 31 of file mpi_info.cc.
|
friend |
Definition at line 16 of file mpi_info.h.
const MPI_Comm& chi::MPI_Info::comm = communicator_ |
MPI communicator.
Definition at line 28 of file mpi_info.h.
|
private |
Definition at line 18 of file mpi_info.h.
const int& chi::MPI_Info::location_id = location_id_ |
Current process rank.
Definition at line 26 of file mpi_info.h.
|
private |
Definition at line 19 of file mpi_info.h.
|
private |
Definition at line 22 of file mpi_info.h.
const int& chi::MPI_Info::process_count = process_count_ |
Total number of processes.
Definition at line 27 of file mpi_info.h.
|
private |
Definition at line 20 of file mpi_info.h.
|
private |
Definition at line 23 of file mpi_info.h.