From 3058047d3ca745c645b8e117e4cfde3ad4369ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Sun, 18 Oct 2020 23:21:47 +0200 Subject: [PATCH] Extract Correct Connection-Level Rates The Polymer, Brine, and Solvent quantities would be extracted from elements 0..#perf-1 of their pertinent container rather than from the elements associated to the particular well. --- opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp index c95e3379e..5729e021b 100644 --- a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp +++ b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp @@ -616,13 +616,13 @@ namespace Opm comp.rates.set( phs[ i ], *(rates + i) ); } if ( pu.has_polymer ) { - comp.rates.set( rt::polymer, this->perfRatePolymer()[local_comp_index]); + comp.rates.set( rt::polymer, this->perfRatePolymer()[wt.second[1] + local_comp_index]); } if ( pu.has_brine ) { - comp.rates.set( rt::brine, this->perfRateBrine()[local_comp_index]); + comp.rates.set( rt::brine, this->perfRateBrine()[wt.second[1] + local_comp_index]); } if ( pu.has_solvent ) { - comp.rates.set( rt::solvent, this->perfRateSolvent()[local_comp_index]); + comp.rates.set( rt::solvent, this->perfRateSolvent()[wt.second[1] + local_comp_index]); } ++local_comp_index;