Skip to content

Commit 79c219f

Browse files
author
Tor Harald Sandve
committed
Also solve std for every inner iterations as default
1 parent 78a2265 commit 79c219f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opm/simulators/flow/BlackoilModelParameters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct TolerancePressureMsWells { static constexpr Scalar value = 0.01*1e5; };
100100
template<class Scalar>
101101
struct MaxPressureChangeMsWells { static constexpr Scalar value = 10*1e5; };
102102

103-
struct MaxNewtonIterationsWithInnerWellIterations { static constexpr int value = 8; };
103+
struct MaxNewtonIterationsWithInnerWellIterations { static constexpr int value = 99; };
104104
struct MaxInnerIterMsWells { static constexpr int value = 100; };
105105
struct MaxInnerIterWells { static constexpr int value = 50; };
106106
struct ShutUnsolvableWells { static constexpr bool value = true; };

opm/simulators/wells/WellInterface_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ namespace Opm
851851

852852
// only use inner well iterations for the first newton iterations.
853853
const int iteration_idx = simulator.model().newtonMethod().numIterations();
854-
if (iteration_idx < this->param_.max_niter_inner_well_iter_ || this->well_ecl_.isMultiSegment()) {
854+
if (iteration_idx < this->param_.max_niter_inner_well_iter_) {
855855
const auto& ws = well_state.well(this->indexOfWell());
856856
const auto pmode_orig = ws.production_cmode;
857857
const auto imode_orig = ws.injection_cmode;

0 commit comments

Comments
 (0)