Merge pull request #5855 from vkip/avoid_setwsolvent_wcycle_shut_wells

Avoid setWsolvent call for wells shut by WCYCLE
This commit is contained in:
Arne Morten Kvarving 2025-01-14 07:14:43 +01:00 committed by GitHub
commit 52a1fd9eb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1017,8 +1017,7 @@ setWsolvent(const Group& group,
}
for (const std::string& wellName : group.wells()) {
const auto& wellTmp = schedule_.getWell(wellName, reportStepIdx);
if (wellTmp.getStatus() == Well::Status::SHUT)
if (! hasOpenLocalWell(wellName))
continue;
getGenWell(wellName)->setWsolvent(wsolvent);