SimulatorReport.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2012 SINTEF ICT, Applied Mathematics.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef OPM_SIMULATORREPORT_HEADER_INCLUDED
21 #define OPM_SIMULATORREPORT_HEADER_INCLUDED
22 
23 #include <iosfwd>
24 
25 namespace Opm
26 {
27 
30  {
31  double pressure_time;
33  double total_time;
34 
37 
39  SimulatorReport(bool verbose=true);
41  void operator+=(const SimulatorReport& sr);
43  void report(std::ostream& os);
45  void reportFullyImplicit(std::ostream& os);
46  void reportParam(std::ostream& os);
47  private:
48  // Whether to print statistics to std::cout
49  bool verbose_;
50  };
51 
52 } // namespace Opm
53 
54 #endif // OPM_SIMULATORREPORT_HEADER_INCLUDED
double pressure_time
Definition: SimulatorReport.hpp:31
Definition: AnisotropicEikonal.hpp:43
void reportParam(std::ostream &os)
unsigned int total_linear_iterations
Definition: SimulatorReport.hpp:36
void reportFullyImplicit(std::ostream &os)
Print a report, leaving out the transport time.
void report(std::ostream &os)
Print a report to the given stream.
SimulatorReport(bool verbose=true)
Default constructor initializing all times to 0.0.
double total_time
Definition: SimulatorReport.hpp:33
double transport_time
Definition: SimulatorReport.hpp:32
A struct for returning timing data from a simulator to its caller.
Definition: SimulatorReport.hpp:29
void operator+=(const SimulatorReport &sr)
Increment this report's times by those in sr.
unsigned int total_newton_iterations
Definition: SimulatorReport.hpp:35