mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-01 17:03:06 -06:00
Silence two warnings:
- Unhandled MULTI enum value. - Unused capture of this.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user