48 TimeStep(
double previous_time,
double current_time, std::size_t n)
92 double dt()
const {
return _dt; }
115 previous_timestep = current_timestep;
116 current_timestep += dt;
double current() const
return current time step
double _current
current time step
void setAccepted(bool const accepted)
TimeStep(const TimeStep &src)=default
copy a time step
TimeStep & operator+=(const double dt)
increment time step
bool operator<(TimeStep const &ts) const
compare current time
TimeStep & operator=(const TimeStep &src)=default
copy a time step
bool operator<=(TimeStep const &ts) const
compare current time
double dt() const
time step size from _previous
std::size_t timeStepNumber() const
the time step number
double _previous
previous time step
TimeStep(double previous_time, double current_time, std::size_t n)
bool operator==(TimeStep const &ts) const
compare current time
TimeStep(double current_time)
std::size_t _time_step_number
the number of time steps
bool _is_accepted
is the timestep accepted
double previous() const
return previous time step
void updateTimeSteps(double const dt, TimeStep &previous_timestep, TimeStep ¤t_timestep)