mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const WellControls* wc = well_controls_;
|
||||
const auto pu = phaseUsage();
|
||||
|
||||
if(std::abs(total_well_rate) > 0.) {
|
||||
if (std::abs(total_well_rate) > 0.) {
|
||||
const auto pu = phaseUsage();
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user