WMCTL is zero for wells with status STOP

This commit is contained in:
Kai Bao 2023-03-10 15:12:14 +01:00
parent d87ac33791
commit ded3edd3bf

View File

@ -1514,7 +1514,8 @@ inline quantity well_control_mode( const fn_args& args )
const auto* well = args.schedule_wells.front();
auto xwPos = args.wells.find(well->name());
if ((xwPos == args.wells.end()) ||
(xwPos->second.dynamicStatus == Opm::Well::Status::SHUT)) {
(xwPos->second.dynamicStatus == Opm::Well::Status::SHUT ||
xwPos->second.dynamicStatus == Opm::Well::Status::STOP )) {
// No dynamic results for 'well'. Treat as shut/stopped.
return { 0.0, unit };
}