BlackoilWellModel: move hasTHPConstraints to generic class

This commit is contained in:
Arne Morten Kvarving
2021-06-07 12:20:49 +02:00
parent cf6a3801fb
commit 54ff1c4c45
4 changed files with 16 additions and 22 deletions

View File

@@ -1508,4 +1508,17 @@ updateAndCommunicateGroupData(const int reportStepIdx,
updateWsolvent(fieldGroup, reportStepIdx, well_state_nupcol);
}
bool
BlackoilWellModelGeneric::
hasTHPConstraints() const
{
int local_result = false;
for (const auto& well : well_container_generic_) {
if (well->wellHasTHPConstraints(summaryState_)) {
local_result=true;
}
}
return comm_.max(local_result);
}
}