output well iterations and non-linear iterations.

This commit is contained in:
Liu Ming 2016-06-28 13:40:32 +08:00
parent afc9e4453a
commit 745666468f

View File

@ -157,9 +157,9 @@ namespace Opm {
if( timestep_verbose_ ) if( timestep_verbose_ )
{ {
std::ostringstream ss; std::ostringstream ss;
ss <<"Substep( " << substepTimer.currentStepNum() << " ), try with stepsize " ss <<"Adaptive time step(" << substepTimer.currentStepNum() << "), stepsize "
<< unit::convert::to(substepTimer.currentStepLength(), unit::day) << " (days)." << std::endl; << unit::convert::to(substepTimer.currentStepLength(), unit::day) << " days.";
OpmLog::note(ss.str()); OpmLog::info(ss.str());
} }
int linearIterations = -1; int linearIterations = -1;
@ -216,9 +216,11 @@ namespace Opm {
if( timestep_verbose_ ) if( timestep_verbose_ )
{ {
std::ostringstream ss; std::ostringstream ss;
ss << "Substep( " << substepTimer.currentStepNum()-1 // it was already advanced by ++ ss << "well iterations = " << solver.wellIterations()
<< " ) finished at time " << unit::convert::to(substepTimer.simulationTimeElapsed(),unit::day) << " (days)." << std::endl << std::endl; << ", non-linear iterations = " << solver.nonlinearIterations()
OpmLog::note(ss.str()); << ", total linear iterations = " << solver.linearIterations()
<< "\n";
OpmLog::info(ss.str());
} }
// write data if outputWriter was provided // write data if outputWriter was provided