Remove unused method

This commit is contained in:
Håkon Hægland committed 2025-12-01 06:06:04 +01:00
1 parent e724831c33
commit 1e4f845548
2 files changed
-41

No files matched your search

@@ -322,42 +322,6 @@ checkGroupProductionConstraints(const Group& group, DeferredLogger& deferred_log
return std::make_pair(Group::ProductionCMode::NONE, Scalar(1.0));
}
template<typename Scalar, typename IndexTraits>
bool BlackoilWellModelConstraints<Scalar, IndexTraits>::
checkGroupConstraints(const Group& group,
const int reportStepIdx,
DeferredLogger& deferred_logger) const
{
if (group.isInjectionGroup()) {
const Phase all[] = {Phase::WATER, Phase::OIL, Phase::GAS};
for (Phase phase : all) {
if (!group.hasInjectionControl(phase)) {
continue;
}
const auto& check = this->checkGroupInjectionConstraints(group,
reportStepIdx, phase);
if (check.first != Group::InjectionCMode::NONE) {
return true;
}
}
}
if (group.isProductionGroup()) {
const auto& check = this->checkGroupProductionConstraints(group, deferred_logger);
if (check.first != Group::ProductionCMode::NONE)
{
return true;
}
}
// call recursively down the group hierarchy
bool violated = false;
for (const std::string& groupName : group.groups()) {
const auto& grp = wellModel_.schedule().getGroup(groupName, reportStepIdx);
violated = violated || this->checkGroupConstraints(grp, reportStepIdx, deferred_logger);
}
return violated;
}
template<typename Scalar, typename IndexTraits>
void BlackoilWellModelConstraints<Scalar, IndexTraits>::
actionOnBrokenConstraints(const Group& group,
@@ -53,11 +53,6 @@ public:
: wellModel_(wellModel)
{}
//! \brief Check the constraints of a well group.
bool checkGroupConstraints(const Group& group,
const int reportStepIdx,
DeferredLogger& deferred_logger) const;
//! \brief Execute action for broken constraint for an injection well group.
void actionOnBrokenConstraints(const Group& group,
const Group::InjectionCMode& newControl,