An oomph-lib wrapper to the MPI_Comm communicator object. Just contains an MPI_Comm object (which is a pointer) and wrappers to the MPI_... methods. More...
#include <communicator.h>
Public Member Functions | |
OomphCommunicator (const MPI_Comm mpi_communicator, const bool &owns_mpi_comm=false) | |
Construct a communicator from a MPI_Comm object. if the bool owns_mpi_comm is true then this communicator is responsible for the destruction of the mpi_communicator. The mpi comm will be freed when the destructor is called. More... | |
OomphCommunicator () | |
Serial constructor. More... | |
Private Attributes | |
MPI_Comm | Comm |
the MPI_Comm communicator More... | |
bool | Owns_mpi_comm |
boolean indiacting whether this communicator owns the underlying MPI_Comm - if so the destructor will free the communicator More... | |
bool | Serial_communicator |
boolean to indicate if this communicator is for serial problems. This is true when serial codes are compiled under MPI More... | |
An oomph-lib wrapper to the MPI_Comm communicator object. Just contains an MPI_Comm object (which is a pointer) and wrappers to the MPI_... methods.
Definition at line 53 of file communicator.h.
|
inline |
Construct a communicator from a MPI_Comm object. if the bool owns_mpi_comm is true then this communicator is responsible for the destruction of the mpi_communicator. The mpi comm will be freed when the destructor is called.
Definition at line 61 of file communicator.h.
References Comm, and Owns_mpi_comm.
|
inline |
Serial constructor.
Definition at line 74 of file communicator.h.
|
private |
the MPI_Comm communicator
Definition at line 354 of file communicator.h.
Referenced by OomphCommunicator().
|
private |
boolean indiacting whether this communicator owns the underlying MPI_Comm - if so the destructor will free the communicator
Definition at line 359 of file communicator.h.
Referenced by OomphCommunicator().
|
private |
boolean to indicate if this communicator is for serial problems. This is true when serial codes are compiled under MPI
Definition at line 363 of file communicator.h.