From d3ff659437db5d6d51e82ce149f72723f8fa1027 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Wed, 13 Jul 2016 12:15:07 +0200 Subject: [PATCH] also keep track of the number of linearizations needed for the simulation --- opm/core/simulator/SimulatorReport.cpp | 2 ++ opm/core/simulator/SimulatorReport.hpp | 1 + 2 files changed, 3 insertions(+) diff --git a/opm/core/simulator/SimulatorReport.cpp b/opm/core/simulator/SimulatorReport.cpp index 2ddca285..e860c946 100644 --- a/opm/core/simulator/SimulatorReport.cpp +++ b/opm/core/simulator/SimulatorReport.cpp @@ -27,6 +27,7 @@ namespace Opm : pressure_time(0.0), transport_time(0.0), total_time(0.0), + total_linearizations( 0 ), total_newton_iterations( 0 ), total_linear_iterations( 0 ), verbose_(verbose) @@ -61,6 +62,7 @@ namespace Opm { os << "Total time taken (seconds): " << total_time << "\nSolver time (seconds): " << pressure_time + << "\nOverall Linearizations: " << total_linearizations << "\nOverall Newton Iterations: " << total_newton_iterations << "\nOverall Linear Iterations: " << total_linear_iterations << std::endl; diff --git a/opm/core/simulator/SimulatorReport.hpp b/opm/core/simulator/SimulatorReport.hpp index 22043918..9e35905a 100644 --- a/opm/core/simulator/SimulatorReport.hpp +++ b/opm/core/simulator/SimulatorReport.hpp @@ -32,6 +32,7 @@ namespace Opm double transport_time; double total_time; + unsigned int total_linearizations; unsigned int total_newton_iterations; unsigned int total_linear_iterations;