24#ifndef DUMUX_TIMESTEPPING_TIME_LEVEL_HH
25#define DUMUX_TIMESTEPPING_TIME_LEVEL_HH
45 , timeStepFraction_(1.0)
58 TimeLevel(Scalar curTime, Scalar prevTime, Scalar dtFraction)
61 , timeStepFraction_(dtFraction)
65 Scalar
current()
const {
return curTime_; }
74 Scalar timeStepFraction_;
Definition: variables.hh:32
Class that represents a time level during time integration.
Definition: timelevel.hh:34
Scalar previous() const
Return the time at the beginning of time integration.
Definition: timelevel.hh:67
TimeLevel(Scalar curTime, Scalar prevTime, Scalar dtFraction)
Construct a time level with information on an ongoing time step.
Definition: timelevel.hh:58
TimeLevel(Scalar curTime)
Construct a time level with a time.
Definition: timelevel.hh:42
Scalar current() const
Return the current time.
Definition: timelevel.hh:65
Scalar timeStepFraction() const
Return the fraction of the time step this level corresponds to.
Definition: timelevel.hh:69