21#include "pism/util/Time.hh"
22#include "pism/util/MaxTimestep.hh"
32template<
class M,
class In>
41 max_dt = std::min(max_dt, model->max_timestep(now));
44 if (max_dt.
value() < 1.0) {
50 model->update(inputs, now, max_dt.
value());
bool finite() const
Convert to bool to check if a time step restriction is "active".
double value() const
Get the value of the maximum time step.
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
double increment_date(double T, double years) const
double current() const
Current time, in seconds.
void init_step(M *model, const In &inputs, const Time &time)