Merge pull request #3438 from GitPaean/stopped_wells_should_output_wmctl_zero

WMCTL is zero for wells with status STOP
This commit is contained in:
Bård Skaflestad 2023-03-14 14:43:57 +01:00 committed by GitHub
commit 80ce852f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 };
}