only multisegment wells will alway inner iteration

This commit is contained in:
Kai Bao 2022-01-20 22:39:38 +01:00
parent 0000df18a4
commit 086b8aab7d

View File

@ -472,7 +472,7 @@ namespace Opm
// only use inner well iterations for the first newton iterations.
const int iteration_idx = ebosSimulator.model().newtonMethod().numIterations();
if (true) {
if (iteration_idx < param_.max_niter_inner_well_iter_ || this->well_ecl_.isMultiSegment()) {
this->operability_status_.solvable = true;
bool converged = this->iterateWellEquations(ebosSimulator, dt, well_state, group_state, deferred_logger);