20 #include "pism/util/Time.hh"
21 #include "pism/util/MaxTimestep.hh"
40 max_dt =
std::min(max_dt, model->max_timestep(now));
43 if (max_dt.
value() < 1.0) {
49 model->update(geometry, 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.
double min(const array::Scalar &input)
Finds minimum over all the values in an array::Scalar object. Ignores ghosts.
void init_step(M *model, const Geometry &geometry, const Time &time)