ExaDG
Loading...
Searching...
No Matches
time_control_statistics.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_COMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_TIME_CONTROL_STATISTICS_H_
23#define INCLUDE_COMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_TIME_CONTROL_STATISTICS_H_
24
25// ExaDG
26#include <exadg/postprocessor/time_control.h>
27
28namespace ExaDG
29{
31{
33
34 void
35 print(dealii::ConditionalOStream & pcout, bool const unsteady) const;
36
37 types::time_step write_preliminary_results_every_nth_time_step;
38
39 TimeControlData time_control_data;
40};
41
42
44{
45public:
47
48 void
49 setup(TimeControlDataStatistics const & time_control_data_statistics_in);
50
51 bool
52 write_preliminary_results(double const time, types::time_step const time_step_number) const;
53
54 TimeControl time_control;
55
56private:
57 TimeControlDataStatistics time_control_data_statistics;
58 mutable bool final_output_written;
59};
60
61
62} // namespace ExaDG
63
64#endif /*INCLUDE_COMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_TIME_CONTROL_STATISTICS_H_*/
Definition time_control_statistics.h:44
Definition time_control.h:64
Definition driver.cpp:33
Definition time_control_statistics.h:31
Definition time_control.h:40