mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unused variable.
Also move variable to scope where used.
This commit is contained in:
parent
f5070c6ba9
commit
b32290d65a
@ -2506,11 +2506,8 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (std::abs(total_well_rate) > 0.) {
|
||||||
const WellControls* wc = well_controls_;
|
const auto pu = phaseUsage();
|
||||||
const auto pu = phaseUsage();
|
|
||||||
|
|
||||||
if(std::abs(total_well_rate) > 0.) {
|
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
||||||
primary_variables_[WFrac] = scalingFactor(pu.phase_pos[Water]) * well_state.wellRates()[np*well_index + pu.phase_pos[Water]] / total_well_rate;
|
primary_variables_[WFrac] = scalingFactor(pu.phase_pos[Water]) * well_state.wellRates()[np*well_index + pu.phase_pos[Water]] / total_well_rate;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user