![]() |
Gowdy solver
|
Implements a dummy message passing interface (MPI). More...
#include <mpiDummyWorld.h>
Public Member Functions | |
int | size () const |
The size of the MPI world. | |
int | rank () const |
Our rank in the MPI world. | |
bool | isFirstInRank () const |
bool | isLastInRank () const |
void | exchangeBoundaries (void *left_ghost, void *left_edge, void *right_edge, void *right_ghost, int edge_size) |
Exchange the boundary data with the neighboring ranks. | |
void | waitExchange () |
Wait the other ranks to have received our edges. |
Implements a dummy message passing interface (MPI).
To enable a real MPI, use mpic++
with -D_USEMPI
.
Definition at line 14 of file mpiDummyWorld.h.
void DummyMPIWorld::exchangeBoundaries | ( | void * | left_ghost, |
void * | left_edge, | ||
void * | right_edge, | ||
void * | right_ghost, | ||
int | edge_size | ||
) | [inline] |
Exchange the boundary data with the neighboring ranks.
left_ghost | Where to put the right edge of the left neighbor |
left_edge | Pointer to the left edge of our data |
right_edge | Pointer to the right edge of our data |
right_ghost | Where to put the left edge of the right neighbor |
edge_size | The edge (or ghost) size |
Definition at line 26 of file mpiDummyWorld.h.
{}
bool DummyMPIWorld::isFirstInRank | ( | ) | const [inline] |
Definition at line 20 of file mpiDummyWorld.h.
{ return true; }
bool DummyMPIWorld::isLastInRank | ( | ) | const [inline] |
Definition at line 21 of file mpiDummyWorld.h.
{ return true; }
int DummyMPIWorld::rank | ( | ) | const [inline] |
Our rank in the MPI world.
Definition at line 18 of file mpiDummyWorld.h.
int DummyMPIWorld::size | ( | ) | const [inline] |
The size of the MPI world.
Definition at line 17 of file mpiDummyWorld.h.
void DummyMPIWorld::waitExchange | ( | ) | [inline] |