also keep track of the number of linearizations needed for the simulation

This commit is contained in:
Andreas Lauser
2016-07-13 12:15:07 +02:00
parent 2f3cdfd9e0
commit c4e5db2153
2 changed files with 3 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;