Silence two warnings:

- Unhandled MULTI enum value.
 - Unused capture of this.
This commit is contained in:
Atgeirr Flø Rasmussen committed 2025-09-18 15:41:38 +02:00
1 parent df807606a7
commit df45c8b5d9
2 files changed
+2 -2

No files matched your search

@@ -1516,7 +1516,7 @@ updateAndCommunicateGroupData(const int reportStepIdx,
break;
}
default:
assert(false); //programming error
throw std::logic_error("MULTI-phase injection is not supported, but was requested for well " + well->name());
}
group_target =
WellGroupHelpersType::getWellGroupTargetInjector(well->name(),
@@ -426,7 +426,7 @@ computeDensitiesForStoppedProducer(const DensityPropertyFunctions& prop_func)
{
const auto np = this->well_.numPhases();
const auto modPhIx = [this, np]() {
const auto modPhIx = [np]() {
auto phIx = std::vector<int>(np);
for (auto p = 0*np; p < np; ++p) {