ExaDG
Loading...
Searching...
No Matches
am_constants.h
1/* ______________________________________________________________________
2 *
3 * ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4 *
5 * Copyright (C) 2021 by the ExaDG authors
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 * ______________________________________________________________________
20 */
21
22#ifndef INCLUDE_EXADG_TIME_INTEGRATION_AM_CONSTANTS_H_
23#define INCLUDE_EXADG_TIME_INTEGRATION_AM_CONSTANTS_H_
24
25// C/C++
26#include <vector>
27
28// deal.II
29#include <deal.II/base/conditional_ostream.h>
30
31// ExaDG
32#include <exadg/time_integration/time_integration_constants_base.h>
33
34namespace ExaDG
35{
40{
41public:
42 AMTimeIntegratorConstants(unsigned int const order, bool const start_with_low_order);
43
44 double
45 get_gamma0() const;
46
47 double
48 get_alpha(unsigned int const i) const;
49
50 void
51 print(dealii::ConditionalOStream & pcout) const final;
52
53private:
54 void
55 set_constant_time_step(unsigned int const current_order) final;
56
57 void
58 set_adaptive_time_step(unsigned int const current_order,
59 std::vector<double> const & time_steps) final;
60
61 double gamma0;
62 std::vector<double> alpha;
63};
64
65} // namespace ExaDG
66
67#endif /* INCLUDE_EXADG_TIME_INTEGRATION_AM_CONSTANTS_H_ */
Definition am_constants.h:40
Definition time_integration_constants_base.h:30
Definition driver.cpp:33