Public Member Functions | Private Attributes | List of all members
oomph::OomphCommunicator Class Reference

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)
 
 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...
 

Detailed Description

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 57 of file communicator.h.

Constructor & Destructor Documentation

oomph::OomphCommunicator::OomphCommunicator ( const MPI_Comm  mpi_communicator,
const bool &  owns_mpi_comm = false 
)
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 67 of file communicator.h.

References Comm, and Owns_mpi_comm.

oomph::OomphCommunicator::OomphCommunicator ( )
inline

Serial constructor.

Definition at line 80 of file communicator.h.

Member Data Documentation

MPI_Comm oomph::OomphCommunicator::Comm
private

the MPI_Comm communicator

Definition at line 102 of file communicator.h.

Referenced by OomphCommunicator().

bool oomph::OomphCommunicator::Owns_mpi_comm
private

boolean indiacting whether this communicator owns the underlying MPI_Comm - if so the destructor will free the communicator

Definition at line 363 of file communicator.h.

Referenced by OomphCommunicator().

bool oomph::OomphCommunicator::Serial_communicator
private

boolean to indicate if this communicator is for serial problems. This is true when serial codes are compiled under MPI

Definition at line 367 of file communicator.h.


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