Feellgood
|
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 |
Logic for finding a reasonable time step.
|
inline |
Create a TimeStepper initialized with the given initial and maximum time steps.
|
inline |
Return a reasonable time step. ‘stride’ is distance to the next time we want to hit exactly.
|
inline |
Update soft_max to be no larger than max.
|
private |
never exceed
|
private |
never go below
|
private |
too large for this specific time step