Feellgood
Public Member Functions | Private Attributes | List of all members
TimeStepper Class Reference

Public Member Functions

 TimeStepper (double initial, double min, double max)
 
void set_soft_limit (double max)
 
double operator() (double stride)
 

Private Attributes

const double hard_min
 
const double hard_max
 
double soft_max
 

Detailed Description

Logic for finding a reasonable time step.

Constructor & Destructor Documentation

◆ TimeStepper()

TimeStepper::TimeStepper ( double  initial,
double  min,
double  max 
)
inline

Create a TimeStepper initialized with the given initial and maximum time steps.

Member Function Documentation

◆ operator()()

double TimeStepper::operator() ( double  stride)
inline

Return a reasonable time step. ‘stride’ is distance to the next time we want to hit exactly.

◆ set_soft_limit()

void TimeStepper::set_soft_limit ( double  max)
inline

Update soft_max to be no larger than max.

Member Data Documentation

◆ hard_max

const double TimeStepper::hard_max
private

never exceed

◆ hard_min

const double TimeStepper::hard_min
private

never go below

◆ soft_max

double TimeStepper::soft_max
private

too large for this specific time step


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