mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove assert() that is now wrong due to minIter() treatment.
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user