Merge pull request #1054 from qilicun/fix-output-well-iterations

Drop useage of std::numeric_limits
This commit is contained in:
Bård Skaflestad 2016-07-22 00:47:23 +02:00 committed by GitHub
commit bc0977ec3d

View File

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