mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-04 13:17:18 -06:00
Merge pull request #6098 from totto82/stdW_inner
Also solve std for every inner iterations as default
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -102,7 +102,7 @@ struct TolerancePressureMsWells { static constexpr Scalar value = 0.01*1e5; };
|
||||
template<class Scalar>
|
||||
struct MaxPressureChangeMsWells { static constexpr Scalar value = 10*1e5; };
|
||||
|
||||
struct MaxNewtonIterationsWithInnerWellIterations { static constexpr int value = 8; };
|
||||
struct MaxNewtonIterationsWithInnerWellIterations { static constexpr int value = 99; };
|
||||
struct MaxInnerIterMsWells { static constexpr int value = 100; };
|
||||
struct MaxInnerIterWells { static constexpr int value = 50; };
|
||||
struct MaxWellStatusSwitchInInnerIterWells { static constexpr int value = 99; };
|
||||
|
||||
@@ -996,7 +996,7 @@ namespace Opm
|
||||
|
||||
// only use inner well iterations for the first newton iterations.
|
||||
const int iteration_idx = simulator.model().newtonMethod().numIterations();
|
||||
if (iteration_idx < this->param_.max_niter_inner_well_iter_ || this->well_ecl_.isMultiSegment()) {
|
||||
if (iteration_idx < this->param_.max_niter_inner_well_iter_) {
|
||||
const auto& ws = well_state.well(this->indexOfWell());
|
||||
const bool nonzero_rate_original =
|
||||
std::any_of(ws.surface_rates.begin(),
|
||||
|
||||
Reference in new issue
Block a user