Remove unused variable.

Also move variable to scope where used.
This commit is contained in:
Atgeirr Flø Rasmussen 2019-08-13 10:51:16 +02:00
parent f5070c6ba9
commit b32290d65a

View File

@ -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;
}