#include <mocksimulator.h>
Inherits MonolithicSimulator< TestCell< 2 > >.
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< Chronometer > | gatherStatistics () |
Returns histograms which detail how much execution time was spent on which part of the algorithm. | |
Static Public Attributes | |
static std::string | events |
LibGeoDecomp::MockSimulator::MockSimulator | ( | Initializer< TestCell< 2 > > * | init | ) | [inline, explicit] |
LibGeoDecomp::MockSimulator::~MockSimulator | ( | ) | [inline] |
References events.
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 > >.
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 > >.
std::string LibGeoDecomp::MockSimulator::events [static] |
Referenced by ~MockSimulator().