Gowdy solver
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DummyMPIWorld Class Reference

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.

Detailed Description

Implements a dummy message passing interface (MPI).

To enable a real MPI, use mpic++ with -D_USEMPI.

Warning:
The maximal slicing is not compliant with MPI since the boundary value problem for the slicing differential equation requires access to the whole grid!

Definition at line 14 of file mpiDummyWorld.h.


Member Function Documentation

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.

Parameters:
left_ghostWhere to put the right edge of the left neighbor
left_edgePointer to the left edge of our data
right_edgePointer to the right edge of our data
right_ghostWhere to put the left edge of the right neighbor
edge_sizeThe 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]

Wait the other ranks to have received our edges.

Definition at line 37 of file mpiDummyWorld.h.

    {}

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