Public Types | Public Member Functions | Protected Attributes

LibGeoDecomp::MonolithicSimulator< CELL_TYPE > Class Template Reference

A MonolithicSimulator is a Simulator which runs on a. More...

#include <monolithicsimulator.h>

Inherits LibGeoDecomp::Simulator< CELL_TYPE >.

Inherited by LibGeoDecomp::CudaSimulator< CELL_TYPE >, and LibGeoDecomp::SerialSimulator< CELL_TYPE >.

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

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr< Writer
< CELL_TYPE > > > 
WriterVector

Public Member Functions

 MonolithicSimulator (Initializer< CELL_TYPE > *initializer)
virtual const Simulator
< CELL_TYPE >::GridType
getGrid ()=0
 Returns the current grid.
virtual void addWriter (Writer< CELL_TYPE > *writer)
 register writer which will observe the simulation.
std::vector< ChronometergatherStatistics ()
 Returns histograms which detail how much execution time was spent on which part of the algorithm.

Protected Attributes

WriterVector writers

Detailed Description

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

A MonolithicSimulator is a Simulator which runs on a.


Member Typedef Documentation

template<typename CELL_TYPE>
typedef std::vector<boost::shared_ptr<Writer<CELL_TYPE> > > LibGeoDecomp::MonolithicSimulator< CELL_TYPE >::WriterVector

Constructor & Destructor Documentation

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

Member Function Documentation

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

register writer which will observe the simulation.

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

template<typename CELL_TYPE>
std::vector<Chronometer> LibGeoDecomp::MonolithicSimulator< CELL_TYPE >::gatherStatistics (  )  [inline, virtual]

Returns histograms which detail how much execution time was spent on which part of the algorithm.

Will return one element per rank.

Implements LibGeoDecomp::Simulator< CELL_TYPE >.

Reimplemented in LibGeoDecomp::MockSimulator.

template<typename CELL_TYPE>
virtual const Simulator<CELL_TYPE>::GridType* LibGeoDecomp::MonolithicSimulator< CELL_TYPE >::getGrid (  )  [pure virtual]

Member Data Documentation

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

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