hyper.deal
Loading...
Searching...
No Matches
time_loop.h
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2020 by the hyper.deal authors
4//
5// This file is part of the hyper.deal library.
6//
7// The hyper.deal library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 3.0 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.MD at
12// the top level directory of hyper.deal.
13//
14// ---------------------------------------------------------------------
15
16#ifndef HYPERDEAL_FUNCTIONALITIES_TIME_LOOP
17#define HYPERDEAL_FUNCTIONALITIES_TIME_LOOP
18
19#include <hyper.deal/base/config.h>
20
21#include <hyper.deal/base/time_loop_parameters.h>
22
23#include <functional>
24
25namespace hyperdeal
26{
30 template <typename Number, typename VectorType>
32 {
33 public:
37 void
39
45 int
47 VectorType &solution,
48 const std::function<
49 void(VectorType &,
50 const Number,
51 const Number,
52 const std::function<
53 void(const VectorType &, VectorType &, const Number)> &)>
54 &time_integrator,
55 const std::function<void(const VectorType &, VectorType &, const Number)>
56 & runnable,
57 const std::function<void(const Number)> &diagnostics);
58
62 Number time_step;
63
68 Number start_time;
69
73 Number final_time;
74
80 };
81} // namespace hyperdeal
82
83#endif
Definition time_loop.h:32
unsigned int max_time_step_number
Definition time_loop.h:79
Number final_time
Definition time_loop.h:73
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)
Number start_time
Definition time_loop.h:68
Number time_step
Definition time_loop.h:62
void reinit(const TimeLoopParamters< Number > &parameters)
Definition time_loop_parameters.h:29