output well iterations if it is a valid number.

This commit is contained in:
Liu Ming 2016-06-30 09:03:30 +08:00
parent 2c25bb8262
commit 50573d1168

View File

@ -216,10 +216,11 @@ namespace Opm {
if( timestep_verbose_ )
{
std::ostringstream ss;
ss << "well iterations = " << solver.wellIterations()
<< ", non-linear iterations = " << solver.nonlinearIterations()
<< ", total linear iterations = " << solver.linearIterations()
<< "\n";
if (solver.wellIterations() != std::numeric_limits<int>::min()) {
ss << "well iterations = " << solver.wellIterations() << ", ";
}
ss << "non-linear iterations = " << solver.nonlinearIterations()
<< ", total linear iterations = " << solver.linearIterations();
OpmLog::info(ss.str());
}