Public Member Functions | Static Public Attributes

LibGeoDecomp::MockSimulator Class Reference

#include <mocksimulator.h>

Inherits MonolithicSimulator< TestCell< 2 > >.

Collaboration diagram for LibGeoDecomp::MockSimulator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MockSimulator (Initializer< TestCell< 2 > > *init)
 ~MockSimulator ()
void step ()
 performs a single simulation step.
void run ()
 performs step() until the maximum number of steps is reached.
Grid< TestCell< 2 > > * getGrid ()
 Returns the current grid.
std::vector< ChronometergatherStatistics ()
 Returns histograms which detail how much execution time was spent on which part of the algorithm.

Static Public Attributes

static std::string events

Constructor & Destructor Documentation

LibGeoDecomp::MockSimulator::MockSimulator ( Initializer< TestCell< 2 > > *  init  )  [inline, explicit]
LibGeoDecomp::MockSimulator::~MockSimulator (  )  [inline]

References events.


Member Function Documentation

std::vector<Chronometer> LibGeoDecomp::MockSimulator::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.

Reimplemented from LibGeoDecomp::MonolithicSimulator< TestCell< 2 > >.

Grid<TestCell<2> >* LibGeoDecomp::MockSimulator::getGrid (  )  [inline, virtual]

Returns the current grid.

Implements LibGeoDecomp::MonolithicSimulator< TestCell< 2 > >.

void LibGeoDecomp::MockSimulator::run (  )  [inline, virtual]

performs step() until the maximum number of steps is reached.

Implements LibGeoDecomp::Simulator< TestCell< 2 > >.

void LibGeoDecomp::MockSimulator::step (  )  [inline, virtual]

performs a single simulation step.

Implements LibGeoDecomp::Simulator< TestCell< 2 > >.


Member Data Documentation

Referenced by ~MockSimulator().


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