Banners.hpp
Go to the documentation of this file.
1/*
2 Copyright 2013, 2014, 2015 SINTEF ICT, Applied Mathematics.
3 Copyright 2014 Dr. Blatt - HPC-Simulation-Software & Services
4 Copyright 2015 IRIS AS
5 Copyright 2014 STATOIL ASA.
6
7 This file is part of the Open Porous Media project (OPM).
8
9 OPM is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 OPM is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with OPM. If not, see <http://www.gnu.org/licenses/>.
21*/
22#ifndef OPM_FLOW_BANNERS_HEADER_INCLUDED
23#define OPM_FLOW_BANNERS_HEADER_INCLUDED
24
25#include <string>
26#include <string_view>
27
28namespace Opm {
29
30struct SimulatorReport;
31struct SimulatorReportSingle;
32
33// Print an ASCII-art header to the PRT and DEBUG files.
34void printPRTHeader(const int nprocs, const int nthreads,
35 const std::string& parameters,
36 std::string_view moduleVersion,
37 std::string_view compileTimestamp);
38
39// Print flow application banner.
40void printFlowBanner(int nprocs, int threads, std::string_view moduleVersionName);
41
42// Print flow application trailer.
43void printFlowTrailer(int nprocs,
44 int nthreads,
45 const double total_setup_time,
46 const double deck_read_time,
47 const SimulatorReport& report,
48 const SimulatorReportSingle& localsolves_report);
49
50} // namespace Opm
51
52#endif // OPM_FLOW_BANNERS_HEADER_INCLUDED
Definition: BlackoilPhases.hpp:27
void printPRTHeader(const int nprocs, const int nthreads, const std::string &parameters, std::string_view moduleVersion, std::string_view compileTimestamp)
std::string moduleVersionName()
std::string compileTimestamp()
void printFlowTrailer(int nprocs, int nthreads, const double total_setup_time, const double deck_read_time, const SimulatorReport &report, const SimulatorReportSingle &localsolves_report)
void printFlowBanner(int nprocs, int threads, std::string_view moduleVersionName)
std::string moduleVersion()
Definition: SimulatorReport.hpp:100
A struct for returning timing data from a simulator to its caller.
Definition: SimulatorReport.hpp:34