ExaDG
Toggle main menu visibility
Loading...
Searching...
No Matches
include
exadg
time_integration
resolution_parameters.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_RESOLUTION_PARAMETERS_H_
23
#define EXADG_TIME_INTEGRATION_RESOLUTION_PARAMETERS_H_
24
25
// deal.II
26
#include <deal.II/base/parameter_handler.h>
27
28
// ExaDG
29
#include <exadg/utilities/enum_patterns.h>
30
31
namespace
ExaDG
32
{
33
struct
TemporalResolutionParameters
34
{
35
TemporalResolutionParameters()
36
{
37
}
38
39
TemporalResolutionParameters(std::string
const
& input_file)
40
{
41
dealii::ParameterHandler prm;
42
add_parameters(prm);
43
prm.parse_input(input_file,
""
,
true
,
true
);
44
}
45
46
void
47
add_parameters(dealii::ParameterHandler & prm)
48
{
49
prm.enter_subsection(
"TemporalResolution"
);
50
{
51
prm.add_parameter(
"RefineTimeMin"
,
52
refine_time_min,
53
"Minimal number of time refinements."
,
54
dealii::Patterns::Integer(0, 20),
55
true
);
56
prm.add_parameter(
"RefineTimeMax"
,
57
refine_time_max,
58
"Maximal number of time refinements."
,
59
dealii::Patterns::Integer(0, 20),
60
true
);
61
}
62
prm.leave_subsection();
63
}
64
65
unsigned
int
refine_time_min = 0;
66
unsigned
int
refine_time_max = 0;
67
};
68
69
}
// namespace ExaDG
70
71
#endif
/* EXADG_TIME_INTEGRATION_RESOLUTION_PARAMETERS_H_ */
ExaDG
Definition
driver.cpp:33
Generated by
1.17.0