Merge pull request #781 from daavid00/fixFloresIndx

Fix to the flores indices
This commit is contained in:
Arne Morten Kvarving 2023-02-07 13:34:23 +01:00 committed by GitHub
commit 03593f8b53

View File

@ -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){