cgma
|
Multi-CPU information for parallel CGM. More...
#include <CGMProcConfig.hpp>
Public Member Functions | |
CGMProcConfig (MPI_Comm proc_comm=MPI_COMM_WORLD) | |
Constructor. | |
~CGMProcConfig () | |
unsigned | proc_rank () const |
Get the current processor number. | |
unsigned | proc_size () const |
Get the number of processors. | |
MPI_Comm | proc_comm () const |
get/set the communicator for this proc config | |
void | proc_comm (MPI_Comm this_comm) |
void | set_master (unsigned int proc) |
unsigned int | get_master () |
Private Attributes | |
MPI_Comm | procComm |
MPI communicator set for this instance. | |
unsigned | procRank |
rank of this processor | |
unsigned | procSize |
number of processors | |
unsigned int | master |
Multi-CPU information for parallel CGM.
Definition at line 12 of file CGMProcConfig.hpp.
CGMProcConfig::CGMProcConfig | ( | MPI_Comm | proc_comm = MPI_COMM_WORLD | ) |
Definition at line 20 of file CGMProcConfig.cpp.
{ }
unsigned int CGMProcConfig::get_master | ( | ) | [inline] |
Definition at line 53 of file CGMProcConfig.hpp.
{ return master; }
MPI_Comm CGMProcConfig::proc_comm | ( | ) | const [inline] |
get/set the communicator for this proc config
Definition at line 28 of file CGMProcConfig.hpp.
{return procComm;}
void CGMProcConfig::proc_comm | ( | MPI_Comm | this_comm | ) | [inline] |
Definition at line 29 of file CGMProcConfig.hpp.
{procComm = this_comm;}
unsigned CGMProcConfig::proc_rank | ( | ) | const [inline] |
Get the current processor number.
Definition at line 20 of file CGMProcConfig.hpp.
{ return procRank; }
unsigned CGMProcConfig::proc_size | ( | ) | const [inline] |
void CGMProcConfig::set_master | ( | unsigned int | proc | ) | [inline] |
Definition at line 49 of file CGMProcConfig.hpp.
{ master = proc; }
unsigned int CGMProcConfig::master [private] |
Definition at line 45 of file CGMProcConfig.hpp.
MPI_Comm CGMProcConfig::procComm [private] |
MPI communicator set for this instance.
Definition at line 37 of file CGMProcConfig.hpp.
unsigned CGMProcConfig::procRank [private] |
rank of this processor
Definition at line 40 of file CGMProcConfig.hpp.
unsigned CGMProcConfig::procSize [private] |
number of processors
Definition at line 43 of file CGMProcConfig.hpp.