walberla::lbm::TimeTracker Class Reference

Detailed Description

Keeps track of the simulation time (One step on the coarsest level counts as '1', one step on the next finer level counts as '0.5', one step on the next level as '0.25' etc.)

#include <TimeTracker.h>

Public Member Functions

 TimeTracker (const uint_t initialTime=uint_t(0))
 
void operator() ()
 
void operator() (const uint_t level, const uint_t executionCount)
 
real_t getTime (const uint_t level=uint_t(0))
 

Private Member Functions

void checkLevel (const uint_t level)
 

Private Attributes

std::vector< uint_tfractionCounter_
 
std::vector< uint_tfractionBase_
 
std::vector< real_ttime_
 

Constructor & Destructor Documentation

◆ TimeTracker()

walberla::lbm::TimeTracker::TimeTracker ( const uint_t  initialTime = uint_t(0))
inline

Member Function Documentation

◆ checkLevel()

void walberla::lbm::TimeTracker::checkLevel ( const uint_t  level)
inlineprivate

◆ getTime()

real_t walberla::lbm::TimeTracker::getTime ( const uint_t  level = uint_t(0))
inline

◆ operator()() [1/2]

void walberla::lbm::TimeTracker::operator() ( )
inline

◆ operator()() [2/2]

void walberla::lbm::TimeTracker::operator() ( const uint_t  level,
const uint_t  executionCount 
)
inline

Member Data Documentation

◆ fractionBase_

std::vector< uint_t > walberla::lbm::TimeTracker::fractionBase_
private

◆ fractionCounter_

std::vector< uint_t > walberla::lbm::TimeTracker::fractionCounter_
private

◆ time_

std::vector< real_t > walberla::lbm::TimeTracker::time_
private

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