fix well iterations counting bugs.

This commit is contained in:
Liu Ming 2016-07-11 11:47:29 +08:00
parent f54e3ebe38
commit bb0164f39f

View File

@ -137,7 +137,11 @@ namespace Opm
}
converged = report.converged;
linIters += report.linear_iterations;
wellIters += report.well_iterations;
if (report.well_iterations != std::numeric_limits<int>::min()) {
wellIters += report.well_iterations;
} else {
wellIters = report.well_iterations;
}
++iteration;
} while ( (!converged && (iteration <= maxIter())) || (iteration <= minIter()));