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