Public Types | Public Member Functions | Static Public Attributes | Private Attributes

LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE > Class Template Reference

The ParallelMemoryWriter is the MemoryWriters's cousin which is compatible with a DistributedSimulator. More...

#include <parallelmemorywriter.h>

Inherits Clonable< ParallelWriter< CELL_TYPE >, ParallelMemoryWriter< CELL_TYPE > >.

Collaboration diagram for LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
APITraits::SelectTopology
< CELL_TYPE >::Value 
Topology
typedef DisplacedGrid
< CELL_TYPE, Topology
GridType
typedef ParallelWriter
< CELL_TYPE >::GridType 
WriterGridType
typedef std::map< unsigned,
GridType
GridMap

Public Member Functions

 ParallelMemoryWriter (int period=1, MPI_Comm communicator=MPI_COMM_WORLD)
virtual void stepFinished (const WriterGridType &grid, const Region< DIM > &validRegion, const Coord< DIM > &globalDimensions, unsigned step, WriterEvent event, std::size_t rank, bool lastCall)
void sendRecvGrid (int sender, int receiver, const GridType &grid, const Region< DIM > &validRegion, int step)
GridTypegetGrid (int i)
std::map< unsigned, GridTypegetGrids ()

Static Public Attributes

static const int DIM = Topology::DIM

Private Attributes

std::map< unsigned, GridTypegrids
MPILayer mpiLayer

Detailed Description

template<typename CELL_TYPE>
class LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >

The ParallelMemoryWriter is the MemoryWriters's cousin which is compatible with a DistributedSimulator.

Useful for debugging, nothing else.


Member Typedef Documentation

template<typename CELL_TYPE >
typedef std::map<unsigned, GridType> LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::GridMap
template<typename CELL_TYPE >
typedef DisplacedGrid<CELL_TYPE, Topology> LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::GridType
template<typename CELL_TYPE >
typedef APITraits::SelectTopology<CELL_TYPE>::Value LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::Topology
template<typename CELL_TYPE >
typedef ParallelWriter<CELL_TYPE>::GridType LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::WriterGridType

Constructor & Destructor Documentation

template<typename CELL_TYPE >
LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::ParallelMemoryWriter ( int  period = 1,
MPI_Comm  communicator = MPI_COMM_WORLD 
) [inline, explicit]

Member Function Documentation

template<typename CELL_TYPE >
GridType& LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::getGrid ( int  i  )  [inline]
template<typename CELL_TYPE >
std::map<unsigned, GridType> LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::getGrids (  )  [inline]
template<typename CELL_TYPE >
void LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::sendRecvGrid ( int  sender,
int  receiver,
const GridType grid,
const Region< DIM > &  validRegion,
int  step 
) [inline]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::stepFinished ( const WriterGridType grid,
const Region< DIM > &  validRegion,
const Coord< DIM > &  globalDimensions,
unsigned  step,
WriterEvent  event,
std::size_t  rank,
bool  lastCall 
) [inline, virtual]

Member Data Documentation

template<typename CELL_TYPE >
const int LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::DIM = Topology::DIM [static]
template<typename CELL_TYPE >
std::map<unsigned, GridType> LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::grids [private]
template<typename CELL_TYPE >
MPILayer LibGeoDecomp::ParallelMemoryWriter< CELL_TYPE >::mpiLayer [private]

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