diff --git a/opm/simulators/wells/WellInterfaceFluidSystem.cpp b/opm/simulators/wells/WellInterfaceFluidSystem.cpp index 918d5328b..0e94950b6 100644 --- a/opm/simulators/wells/WellInterfaceFluidSystem.cpp +++ b/opm/simulators/wells/WellInterfaceFluidSystem.cpp @@ -790,8 +790,9 @@ updateWellTestState(const SingleWellState& ws, // updating well test state based on physical (THP/BHP) limits. updateWellTestStatePhysical(simulationTime, writeMessageToOPMLog, wellTestState, deferred_logger); - // updating well test state based on Economic limits. - updateWellTestStateEconomic(ws, simulationTime, writeMessageToOPMLog, wellTestState, deferred_logger); + // updating well test state based on Economic limits for operable wells + if (this->isOperableAndSolvable()) + updateWellTestStateEconomic(ws, simulationTime, writeMessageToOPMLog, wellTestState, deferred_logger); // TODO: well can be shut/closed due to other reasons }