47 bool operator()(
const std::pair<Real, TimeStepper *> & a,
48 const std::pair<Real, TimeStepper *> & b)
const
50 return a.first < b.first;
60 std::set<std::pair<Real, TimeStepper *>, CompareFirst> & bound_dts);
69 virtual void init() override final;
71 virtual
void preSolve() override final;
74 virtual
void preStep() override final;
75 virtual
void postStep() override final;
85 virtual
void step() override final;
100 virtual
bool converged() const override final;
107 template <typename Lambda>
A TimeStepper that takes time steppers as inputs and computes the minimum time step size among all ti...
virtual void preStep() override final
virtual void preExecute() override final
virtual void postSolve() override final
virtual bool constrainStep(Real &dt) override final
Called after computeStep() is called.
virtual void step() override final
Functions called after the current DT is computed.
virtual void preSolve() override final
const bool _has_initial_dt
const std::set< std::string > _lower_bound
virtual void postExecute() override final
Real getSequenceSteppersNextTime()
TimeStepper * _current_time_stepper
Real produceCompositionDT(std::set< std::pair< Real, TimeStepper * >, CompareFirst > &dts, std::set< std::pair< Real, TimeStepper * >, CompareFirst > &bound_dts)
Find the composed time step size by selecting the minimum value and compare it with the lower bound i...
static InputParameters validParams()
virtual void postStep() override final
TimeSequenceStepperBase * _closest_time_sequence_stepper
std::vector< TimeStepper * > getTimeSteppers()
Internal method for querying TheWarehouse for the currently active timesteppers.
TimeStepper * _largest_bound_time_stepper
virtual bool converged() const override final
The _current_time_stepper is used to check whether convergence was reached on the time step.
virtual void rejectStep() override final
This gets called when time step is rejected for all input time steppers.
virtual void acceptStep() override final
This gets called when time step is accepted for all input time steppers.
virtual void init() override final
Initialize all the input time stepper(s).
virtual Real computeDT() override final
Computes time step size after the initial time step.
virtual Real computeInitialDT() override final
Computes time step size for the initial time step.
void actOnTimeSteppers(Lambda &&act)
static InputParameters compositionDTParams()
const InputParameters & parameters() const
Get the parameters of the object.
Solves the PDEs at a sequence of given time points.
Base class for time stepping.
Comparator for sorting by the value of dt for the TimeStepper sets which stored the pairs of the dt a...
bool operator()(const std::pair< Real, TimeStepper * > &a, const std::pair< Real, TimeStepper * > &b) const