hyper.deal
|
#include <time_loop.h>
Public Member Functions | |
void | reinit (const TimeLoopParamters< Number > ¶meters) |
int | loop (VectorType &solution, const std::function< void(VectorType &, const Number, const Number, const std::function< void(const VectorType &, VectorType &, const Number)> &)> &time_integrator, const std::function< void(const VectorType &, VectorType &, const Number)> &runnable, const std::function< void(const Number)> &diagnostics) |
Public Attributes | |
Number | time_step |
Number | start_time |
Number | final_time |
unsigned int | max_time_step_number |
Time loop class.
int hyperdeal::TimeLoop< Number, VectorType >::loop | ( | VectorType & | solution, |
const std::function< void(VectorType &, const Number, const Number, const std::function< void(const VectorType &, VectorType &, const Number)> &)> & | time_integrator, | ||
const std::function< void(const VectorType &, VectorType &, const Number)> & | runnable, | ||
const std::function< void(const Number)> & | diagnostics ) |
Run time loop. For each time step, a time_integrator
, which evaluates the right-hand side function @runnable, and a postprocessor diagnostics
is called.
void hyperdeal::TimeLoop< Number, VectorType >::reinit | ( | const TimeLoopParamters< Number > & | parameters | ) |
Configure time loop.
Number hyperdeal::TimeLoop< Number, VectorType >::final_time |
Final time.
unsigned int hyperdeal::TimeLoop< Number, VectorType >::max_time_step_number |
Maximal number of time steps, after which the simulation terminates even if the final time has not been reached.
Number hyperdeal::TimeLoop< Number, VectorType >::start_time |
Start time. The default is zero, however, in the case of restarts one might specify a different value.
Number hyperdeal::TimeLoop< Number, VectorType >::time_step |
Constant time step size.