Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes

LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE > Class Template Reference

#include <commonstepper.h>

Inherits LibGeoDecomp::HiParSimulator::Stepper< CELL_TYPE >.

Inherited by LibGeoDecomp::HiParSimulator::CUDAStepper< CELL_TYPE >, and LibGeoDecomp::HiParSimulator::VanillaStepper< CELL_TYPE >.

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

List of all members.

Public Types

typedef Stepper< CELL_TYPE >
::Topology 
Topology
typedef class CommonStepper
< CELL_TYPE > 
ParentType
typedef ParentType::GridType GridType
typedef PartitionManager
< Topology
PartitionManagerType
typedef PatchBufferFixed
< GridType, GridType, 1 > 
PatchBufferType1
typedef PatchBufferFixed
< GridType, GridType, 2 > 
PatchBufferType2
typedef
ParentType::PatchAccepterVec 
PatchAccepterVec

Public Member Functions

 CommonStepper (boost::shared_ptr< PartitionManagerType > partitionManager, boost::shared_ptr< Initializer< CELL_TYPE > > initializer, const PatchAccepterVec &ghostZonePatchAccepters=PatchAccepterVec(), const PatchAccepterVec &innerSetPatchAccepters=PatchAccepterVec())
virtual void update (std::size_t nanoSteps)
std::pair< std::size_t,
std::size_t > 
currentStep () const
 returns current step and nanoStep
const GridTypegrid () const
virtual void update1 ()=0
 Proceed the simulation exactly one nano step.

Static Public Attributes

static const int DIM = Topology::DIM
static const unsigned NANO_STEPS = APITraits::SelectNanoSteps<CELL_TYPE>::VALUE

Protected Member Functions

void notifyPatchAccepters (const Region< DIM > &region, const typename ParentType::PatchType &patchType, std::size_t nanoStep)
void notifyPatchProviders (const Region< DIM > &region, const typename ParentType::PatchType &patchType, std::size_t nanoStep)
std::size_t globalNanoStep () const
CoordBox< DIMinitGridsCommon ()
unsigned ghostZoneWidth () const
const Region< DIM > & rim (unsigned offset) const
const Region< DIM > & rim () const
const Region< DIM > & innerSet (unsigned offset) const
const Region< DIM > & getVolatileKernel () const
const Region< DIM > & getInnerRim () const
void resetValidGhostZoneWidth ()
void saveRim (std::size_t nanoStep)
void restoreRim (bool remove)
void saveKernel ()
void restoreKernel ()

Protected Attributes

std::size_t curStep
std::size_t curNanoStep
unsigned validGhostZoneWidth
boost::shared_ptr< GridTypeoldGrid
boost::shared_ptr< GridTypenewGrid
PatchBufferType2 rimBuffer
PatchBufferType1 kernelBuffer
Region< DIMkernelFraction

template<typename CELL_TYPE>
class LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >


Member Typedef Documentation

template<typename CELL_TYPE >
typedef ParentType::GridType LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::GridType
template<typename CELL_TYPE >
typedef class CommonStepper< CELL_TYPE > LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::ParentType
template<typename CELL_TYPE >
typedef PartitionManager<Topology> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::PartitionManagerType
template<typename CELL_TYPE >
typedef ParentType::PatchAccepterVec LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::PatchAccepterVec
template<typename CELL_TYPE >
typedef PatchBufferFixed<GridType, GridType, 1> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::PatchBufferType1
template<typename CELL_TYPE >
typedef PatchBufferFixed<GridType, GridType, 2> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::PatchBufferType2
template<typename CELL_TYPE >
typedef Stepper<CELL_TYPE>::Topology LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::Topology

Constructor & Destructor Documentation

template<typename CELL_TYPE >
LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::CommonStepper ( boost::shared_ptr< PartitionManagerType partitionManager,
boost::shared_ptr< Initializer< CELL_TYPE > >  initializer,
const PatchAccepterVec ghostZonePatchAccepters = PatchAccepterVec(),
const PatchAccepterVec innerSetPatchAccepters = PatchAccepterVec() 
) [inline]

Member Function Documentation

template<typename CELL_TYPE >
std::pair<std::size_t, std::size_t> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::currentStep (  )  const [inline, virtual]
template<typename CELL_TYPE >
const Region<DIM>& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::getInnerRim (  )  const [inline, protected]
template<typename CELL_TYPE >
const Region<DIM>& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::getVolatileKernel (  )  const [inline, protected]
template<typename CELL_TYPE >
unsigned LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::ghostZoneWidth (  )  const [inline, protected]
template<typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::globalNanoStep (  )  const [inline, protected]
template<typename CELL_TYPE >
const GridType& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::grid (  )  const [inline, virtual]
template<typename CELL_TYPE >
CoordBox<DIM> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::initGridsCommon (  )  [inline, protected]
template<typename CELL_TYPE >
const Region<DIM>& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::innerSet ( unsigned  offset  )  const [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::notifyPatchAccepters ( const Region< DIM > &  region,
const typename ParentType::PatchType &  patchType,
std::size_t  nanoStep 
) [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::notifyPatchProviders ( const Region< DIM > &  region,
const typename ParentType::PatchType &  patchType,
std::size_t  nanoStep 
) [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::resetValidGhostZoneWidth (  )  [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::restoreKernel (  )  [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::restoreRim ( bool  remove  )  [inline, protected]
template<typename CELL_TYPE >
const Region<DIM>& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::rim ( unsigned  offset  )  const [inline, protected]
template<typename CELL_TYPE >
const Region<DIM>& LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::rim (  )  const [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::saveKernel (  )  [inline, protected]
template<typename CELL_TYPE >
void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::saveRim ( std::size_t  nanoStep  )  [inline, protected]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::update ( std::size_t  nanoSteps  )  [inline, virtual]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::update1 (  )  [pure virtual]

Member Data Documentation

template<typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::curNanoStep [protected]
template<typename CELL_TYPE >
std::size_t LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::curStep [protected]
template<typename CELL_TYPE >
const int LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::DIM = Topology::DIM [static]
template<typename CELL_TYPE >
PatchBufferType1 LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::kernelBuffer [protected]
template<typename CELL_TYPE >
Region<DIM> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::kernelFraction [protected]
template<typename CELL_TYPE >
const unsigned LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::NANO_STEPS = APITraits::SelectNanoSteps<CELL_TYPE>::VALUE [static]
template<typename CELL_TYPE >
boost::shared_ptr<GridType> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::newGrid [protected]
template<typename CELL_TYPE >
boost::shared_ptr<GridType> LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::oldGrid [protected]
template<typename CELL_TYPE >
PatchBufferType2 LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::rimBuffer [protected]
template<typename CELL_TYPE >
unsigned LibGeoDecomp::HiParSimulator::CommonStepper< CELL_TYPE >::validGhostZoneWidth [protected]

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