don't shut stopped wells

This commit is contained in:
Tor Harald Sandve 2020-12-21 09:25:57 +01:00
parent 81419aa001
commit bcdf6c8d02

View File

@ -926,7 +926,7 @@ namespace Opm
WellTestState& well_test_state,
Opm::DeferredLogger& deferred_logger) const
{
if (!isOperable() || wellIsStopped_) {
if (!isOperable()) {
if (well_test_state.hasWellClosed(name(), WellTestConfig::Reason::ECONOMIC) ||
well_test_state.hasWellClosed(name(), WellTestConfig::Reason::PHYSICAL) ) {
// Already closed, do nothing.