ExaDG
Loading...
Searching...
No Matches
time_int_bdf_base.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 EXADG_TIME_INTEGRATION_TIME_INT_BDF_BASE_H_
23#define EXADG_TIME_INTEGRATION_TIME_INT_BDF_BASE_H_
24
25// ExaDG
26#include <exadg/time_integration/bdf_constants.h>
27#include <exadg/time_integration/extrapolation_constants.h>
28#include <exadg/time_integration/time_int_multistep_base.h>
29
30namespace ExaDG
31{
32class TimeIntBDFBase : public TimeIntMultistepBase
33{
34public:
35 TimeIntBDFBase(double const start_time_,
36 double const end_time_,
37 unsigned int const max_number_of_time_steps_,
38 unsigned const order_,
39 bool const start_with_low_order_,
40 bool const adaptive_time_stepping_,
41 RestartData const & restart_data_,
42 MPI_Comm const & mpi_comm_,
43 bool const is_test_);
44
45protected:
46 double
47 get_scaling_factor_time_derivative_term() const;
48
49 void
50 update_time_integrator_constants() override;
51
52 /*
53 * Time integration constants. The extrapolation scheme is not necessarily used for a BDF time
54 * integration scheme with fully implicit time stepping, implying a violation of the Liskov
55 * substitution principle (OO software design principle). However, it does not appear to be
56 * reasonable to complicate the inheritance due to this fact.
57 */
60};
61} // namespace ExaDG
62
63#endif /* EXADG_TIME_INTEGRATION_TIME_INT_BDF_BASE_H_ */
Definition bdf_constants.h:42
Definition extrapolation_constants.h:37
Definition driver.cpp:33
Definition restart_data.h:38