From 94b8f5a9415382933377091adb06365a7b2ada85 Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Tue, 7 Feb 2023 00:41:21 +0100 Subject: [PATCH] Fix to the flores indices --- opm/models/blackoil/blackoillocalresidualtpfa.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/models/blackoil/blackoillocalresidualtpfa.hh b/opm/models/blackoil/blackoillocalresidualtpfa.hh index cc8eb2e7a..4e731cb7e 100644 --- a/opm/models/blackoil/blackoillocalresidualtpfa.hh +++ b/opm/models/blackoil/blackoillocalresidualtpfa.hh @@ -377,7 +377,8 @@ public: darcyFlux = pressureDifference * (Toolbox::value(up.mobility(phaseIdx, facedir)) * Toolbox::value(transMult) * (-trans / faceArea)); } - darcy[phaseIdx] = darcyFlux.value() * faceArea; // For the FLORES fluxes + unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx)); + darcy[conti0EqIdx + activeCompIdx] = darcyFlux.value() * faceArea; // For the FLORES fluxes unsigned pvtRegionIdx = up.pvtRegionIndex(); // if (upIdx == globalFocusDofIdx){