Public Types | Public Member Functions | Private Attributes

LibGeoDecomp::TestSteerer< DIM > Class Template Reference

The TestSteerer demos how a Steerer can be implemented to modify the grid during the course of the simulation. More...

#include <teststeerer.h>

Inherits Steerer< TestCell< DIM > >.

Collaboration diagram for LibGeoDecomp::TestSteerer< DIM >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Steerer< TestCell< DIM >
>::SteererFeedback 
SteererFeedback
typedef Steerer< TestCell< DIM >
>::GridType 
GridType
typedef Steerer< TestCell< DIM >
>::CoordType 
CoordType

Public Member Functions

 TestSteerer (const unsigned &period, const unsigned &eventStep, const unsigned &cycleOffset, const unsigned &terminalStep=1000000)
virtual void nextStep (GridType *grid, const Region< DIM > &validRegion, const CoordType &globalDimensions, unsigned step, SteererEvent event, std::size_t rank, bool lastCall, SteererFeedback *feedback)

Private Attributes

unsigned eventStep
unsigned cycleOffset
unsigned terminalStep
unsigned lastStep
SteererEvent lastEvent
bool previousLastCall
Region< DIM > unaccountedRegion

Detailed Description

template<int DIM>
class LibGeoDecomp::TestSteerer< DIM >

The TestSteerer demos how a Steerer can be implemented to modify the grid during the course of the simulation.

The idea is to advance the cell's cycleCounter at eventStep by cycleOffset.

The simulation will be terminated at the time step given by terminalStep.


Member Typedef Documentation

template<int DIM>
typedef Steerer<TestCell<DIM> >::CoordType LibGeoDecomp::TestSteerer< DIM >::CoordType
template<int DIM>
typedef Steerer<TestCell<DIM> >::GridType LibGeoDecomp::TestSteerer< DIM >::GridType
template<int DIM>
typedef Steerer<TestCell<DIM> >::SteererFeedback LibGeoDecomp::TestSteerer< DIM >::SteererFeedback

Constructor & Destructor Documentation

template<int DIM>
LibGeoDecomp::TestSteerer< DIM >::TestSteerer ( const unsigned period,
const unsigned eventStep,
const unsigned cycleOffset,
const unsigned terminalStep = 1000000 
) [inline]

Member Function Documentation

template<int DIM>
virtual void LibGeoDecomp::TestSteerer< DIM >::nextStep ( GridType grid,
const Region< DIM > &  validRegion,
const CoordType globalDimensions,
unsigned  step,
SteererEvent  event,
std::size_t  rank,
bool  lastCall,
SteererFeedback feedback 
) [inline, virtual]

Member Data Documentation

template<int DIM>
unsigned LibGeoDecomp::TestSteerer< DIM >::cycleOffset [private]
template<int DIM>
unsigned LibGeoDecomp::TestSteerer< DIM >::eventStep [private]
template<int DIM>
SteererEvent LibGeoDecomp::TestSteerer< DIM >::lastEvent [private]
template<int DIM>
unsigned LibGeoDecomp::TestSteerer< DIM >::lastStep [private]
template<int DIM>
bool LibGeoDecomp::TestSteerer< DIM >::previousLastCall [private]
template<int DIM>
unsigned LibGeoDecomp::TestSteerer< DIM >::terminalStep [private]
template<int DIM>
Region<DIM> LibGeoDecomp::TestSteerer< DIM >::unaccountedRegion [private]

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