Calculates when the next timestep will be, and if a shift has occured.
calc_next_timeval_shift(max_rates, timeval, dynamic_shift_times, total_time)
named list with numeric vector containing the time of the next timestep and the change in time.
named list of max rates as returned by
update_rates
.
current time of simulation
numeric vector of times of rate shifts.
Joshua Lambert, Pedro Neves, Shu Xie