mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3489 from akva2/janitoring
avoid unused variable warning
This commit is contained in:
commit
36201c8871
@ -298,10 +298,10 @@ updatePrimaryVariables(const WellState& well_state, DeferredLogger& deferred_log
|
|||||||
}
|
}
|
||||||
} else { // total_well_rate == 0
|
} else { // total_well_rate == 0
|
||||||
if (baseif_.isInjector()) {
|
if (baseif_.isInjector()) {
|
||||||
auto phase = baseif_.wellEcl().getInjectionProperties().injectorType;
|
|
||||||
// only single phase injection handled
|
// only single phase injection handled
|
||||||
if constexpr (has_wfrac_variable) {
|
if constexpr (has_wfrac_variable) {
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
||||||
|
auto phase = baseif_.wellEcl().getInjectionProperties().injectorType;
|
||||||
if (phase == InjectorType::WATER) {
|
if (phase == InjectorType::WATER) {
|
||||||
primary_variables_[WFrac] = 1.0;
|
primary_variables_[WFrac] = 1.0;
|
||||||
} else {
|
} else {
|
||||||
@ -311,6 +311,7 @@ updatePrimaryVariables(const WellState& well_state, DeferredLogger& deferred_log
|
|||||||
}
|
}
|
||||||
if constexpr (has_gfrac_variable) {
|
if constexpr (has_gfrac_variable) {
|
||||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
||||||
|
auto phase = baseif_.wellEcl().getInjectionProperties().injectorType;
|
||||||
if (phase == InjectorType::GAS) {
|
if (phase == InjectorType::GAS) {
|
||||||
primary_variables_[GFrac] = 1.0;
|
primary_variables_[GFrac] = 1.0;
|
||||||
if constexpr (Indices::enableSolvent) {
|
if constexpr (Indices::enableSolvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user