Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion opm/simulators/flow/Banners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,20 @@ void printFlowBanner(int nprocs, int nthreads, std::string_view moduleVersionNam
}

void printFlowTrailer(int nprocs, int nthreads,
const SimulatorReport& report)
const SimulatorReport& report,
const SimulatorReportSingle& localsolves_report)
{
std::ostringstream ss;
ss << "\n\n================ End of simulation ===============\n\n";
ss << fmt::format("Number of MPI processes: {:9}\n", nprocs);
ss << fmt::format("Threads per MPI process: {:9}\n", nthreads);
report.reportFullyImplicit(ss);

if (localsolves_report.total_linearizations > 0) {
ss << "====== Accumulated local solve data ======\n";
localsolves_report.reportFullyImplicit(ss);
}

OpmLog::info(ss.str());
}

Expand Down
4 changes: 3 additions & 1 deletion opm/simulators/flow/Banners.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
namespace Opm {

struct SimulatorReport;
struct SimulatorReportSingle;

// Print an ASCII-art header to the PRT and DEBUG files.
void printPRTHeader(const std::string& parameters,
Expand All @@ -39,7 +40,8 @@ void printFlowBanner(int nprocs, int threads, std::string_view moduleVersionName

// Print flow application trailer.
void printFlowTrailer(int nprocs, int nthreads,
const SimulatorReport& report);
const SimulatorReport& report,
const SimulatorReportSingle& localsolves_report);

} // namespace Opm

Expand Down
Loading