Merge pull request #1053 from andlaus/print_linearizations
also keep track of the number of linearizations needed for the simulation
This commit is contained in:
commit
6f264781b0
@ -27,6 +27,7 @@ namespace Opm
|
|||||||
: pressure_time(0.0),
|
: pressure_time(0.0),
|
||||||
transport_time(0.0),
|
transport_time(0.0),
|
||||||
total_time(0.0),
|
total_time(0.0),
|
||||||
|
total_linearizations( 0 ),
|
||||||
total_newton_iterations( 0 ),
|
total_newton_iterations( 0 ),
|
||||||
total_linear_iterations( 0 ),
|
total_linear_iterations( 0 ),
|
||||||
verbose_(verbose)
|
verbose_(verbose)
|
||||||
@ -61,6 +62,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
os << "Total time taken (seconds): " << total_time
|
os << "Total time taken (seconds): " << total_time
|
||||||
<< "\nSolver time (seconds): " << pressure_time
|
<< "\nSolver time (seconds): " << pressure_time
|
||||||
|
<< "\nOverall Linearizations: " << total_linearizations
|
||||||
<< "\nOverall Newton Iterations: " << total_newton_iterations
|
<< "\nOverall Newton Iterations: " << total_newton_iterations
|
||||||
<< "\nOverall Linear Iterations: " << total_linear_iterations
|
<< "\nOverall Linear Iterations: " << total_linear_iterations
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
@ -32,6 +32,7 @@ namespace Opm
|
|||||||
double transport_time;
|
double transport_time;
|
||||||
double total_time;
|
double total_time;
|
||||||
|
|
||||||
|
unsigned int total_linearizations;
|
||||||
unsigned int total_newton_iterations;
|
unsigned int total_newton_iterations;
|
||||||
unsigned int total_linear_iterations;
|
unsigned int total_linear_iterations;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user