20 #include "pism/util/MaxTimestep.hh"
28 : m_finite(false), m_value(0.0) {
33 : m_finite(true), m_value(v) {
80 return (not (a == b)) and (not (a < b));
MaxTimestep()
Create an instance corresponding to an "inactive" time-step restriction (in other words,...
std::string description() const
bool finite() const
Convert to bool to check if a time step restriction is "active".
std::string m_description
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...
bool operator>(const MaxTimestep &a, const MaxTimestep &b)
Greater than operator for MaxTimestep.
bool operator<(const MaxTimestep &a, const MaxTimestep &b)
Less than operator for MaxTimestep.
bool operator==(const MaxTimestep &a, const MaxTimestep &b)
Equality operator for MaxTimestep.