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