Public Types | Public Member Functions | Protected Attributes

LibGeoDecomp::DistributedSimulator< CELL_TYPE > Class Template Reference

This class encompasses all Simulators which can run on multiple nodes (e.g. More...

#include <distributedsimulator.h>

Inherits LibGeoDecomp::Simulator< CELL_TYPE >.

Inherited by LibGeoDecomp::HiParSimulator::HiParSimulator< CELL_TYPE, PARTITION, STEPPER >, LibGeoDecomp::HpxSimulator::HpxSimulator< CELL_TYPE, PARTITION, STEPPER >, and LibGeoDecomp::StripingSimulator< CELL_TYPE >.

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

List of all members.

Public Types

typedef Simulator< CELL_TYPE >
::Topology 
Topology
typedef GridBase< CELL_TYPE,
Topology::DIM
GridType
typedef std::vector
< boost::shared_ptr
< ParallelWriter< CELL_TYPE > > > 
WriterVector

Public Member Functions

 DistributedSimulator (Initializer< CELL_TYPE > *initializer)
virtual void addWriter (ParallelWriter< CELL_TYPE > *writer)
 register writer which will observe the simulation.

Protected Attributes

WriterVector writers

Detailed Description

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

This class encompasses all Simulators which can run on multiple nodes (e.g.

using MPI or HPX for synchronization).


Member Typedef Documentation

template<typename CELL_TYPE>
typedef GridBase<CELL_TYPE, Topology::DIM> LibGeoDecomp::DistributedSimulator< CELL_TYPE >::GridType
template<typename CELL_TYPE>
typedef Simulator<CELL_TYPE>::Topology LibGeoDecomp::DistributedSimulator< CELL_TYPE >::Topology
template<typename CELL_TYPE>
typedef std::vector<boost::shared_ptr<ParallelWriter<CELL_TYPE> > > LibGeoDecomp::DistributedSimulator< CELL_TYPE >::WriterVector

Constructor & Destructor Documentation

template<typename CELL_TYPE>
LibGeoDecomp::DistributedSimulator< CELL_TYPE >::DistributedSimulator ( Initializer< CELL_TYPE > *  initializer  )  [inline, explicit]

Member Function Documentation

template<typename CELL_TYPE>
virtual void LibGeoDecomp::DistributedSimulator< CELL_TYPE >::addWriter ( ParallelWriter< CELL_TYPE > *  writer  )  [inline, virtual]

register writer which will observe the simulation.

The DistributedSimulator will assume that it now owns the ParallelWriter, so it'll delete it upon destruction.

Reimplemented in LibGeoDecomp::HiParSimulator::HiParSimulator< CELL_TYPE, PARTITION, STEPPER >, and LibGeoDecomp::HpxSimulator::HpxSimulator< CELL_TYPE, PARTITION, STEPPER >.


Member Data Documentation

template<typename CELL_TYPE>
WriterVector LibGeoDecomp::DistributedSimulator< CELL_TYPE >::writers [protected]

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