check operability history wells

This commit is contained in:
Tor Harald Sandve
2021-10-14 13:14:38 +02:00
parent d925e74b76
commit 160c80b574
6 changed files with 11 additions and 38 deletions

View File

@@ -478,7 +478,7 @@ namespace Opm
// unsolvable wells are treated as not operable and will not be solved for in this iteration.
if (!converged) {
if (this->shutUnsolvableWells())
if (param_.shut_unsolvable_wells_)
this->operability_status_.solvable = false;
}
}
@@ -551,10 +551,6 @@ namespace Opm
return;
}
if (!this->underPredictionMode() ) {
return;
}
if (this->wellIsStopped() && !changed_to_stopped_this_step_) {
return;
}
@@ -563,19 +559,6 @@ namespace Opm
}
template<typename TypeTag>
bool
WellInterface<TypeTag>::
shutUnsolvableWells() const
{
bool shut_unsolvable_wells = param_.shut_unsolvable_wells_;
// the well operability system currently works only for producers in prediction mode
return shut_unsolvable_wells && this->underPredictionMode();
}
template<typename TypeTag>
void