Remove assert() that is now wrong due to minIter() treatment.

This commit is contained in:
Atgeirr Flø Rasmussen
2015-11-25 11:08:10 +01:00
parent 9275070bad
commit 99fd5e977f

View File

@@ -93,14 +93,14 @@ namespace Opm
// ---------- Main nonlinear solver loop ----------
do {
// Do the nonlinear step. If we are in a converged state, the
// model will usually do an early return without an expensive
// solve, unless the minIter() count has not been reached yet.
IterationReport report = model_->nonlinearIteration(iteration, dt, *this, reservoir_state, well_state);
if (report.failed) {
OPM_THROW(Opm::NumericalProblem, "Failed to complete a nonlinear iteration.");
}
if (report.converged) {
assert(report.linear_iterations == 0);
converged = true;
}
converged = report.converged;
linIters += report.linear_iterations;
++iteration;
} while ( (!converged && (iteration <= maxIter())) || (iteration <= minIter()));