mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-21 06:53:27 -06:00
Silence a warning.
This commit is contained in:
parent
10b738c7e3
commit
1aa5d6b293
@ -558,7 +558,8 @@ namespace Opm
|
||||
const std::vector<double>& well_surfacerates_phase)
|
||||
{
|
||||
if (injSpec().control_mode_ == InjectionSpecification::REIN) {
|
||||
BlackoilPhases::PhaseIndex phase;
|
||||
// Defaulting to water to satisfy -Wmaybe-uninitialized
|
||||
BlackoilPhases::PhaseIndex phase = BlackoilPhases::Aqua;
|
||||
switch (injSpec().injector_type_) {
|
||||
case InjectionSpecification::WATER:
|
||||
phase = BlackoilPhases::Aqua;
|
||||
|
Loading…
Reference in New Issue
Block a user