From a697e7faf6c1ebc278881f2069ac676f56251c47 Mon Sep 17 00:00:00 2001 From: Cintia Goncalves Machado Date: Wed, 14 Oct 2020 14:55:38 +0200 Subject: [PATCH] fix return position --- opm/simulators/wells/StandardWell_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index 8ff199a0d..975f55f34 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -269,12 +269,12 @@ namespace Opm return primary_variables_evaluation_[SFrac]; } } - else if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx) && compIdx == Indices::canonicalToActiveComponentIndex(FluidSystem::waterCompIdx)) { - return primary_variables_evaluation_[WFrac]; + else if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx) && compIdx == Indices::canonicalToActiveComponentIndex(FluidSystem::waterCompIdx)) { - if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx) && compIdx == Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx)) { + if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx) && compIdx == Indices::canonicalToActiveComponentIndex(FluidSystem::gasCompIdx)) { return primary_variables_evaluation_[GFrac]; } + return primary_variables_evaluation_[WFrac]; } // Oil or WATER fraction