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