mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Bugfix: make TPFA version of local linearizer work for two-phase runs.
This commit is contained in:
parent
63ea7b29c1
commit
92e9bd5c37
@ -126,6 +126,9 @@ public:
|
|||||||
storage = 0.0;
|
storage = 0.0;
|
||||||
|
|
||||||
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
|
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
|
||||||
|
if (!FluidSystem::phaseIsActive(phaseIdx)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx));
|
unsigned activeCompIdx = Indices::canonicalToActiveComponentIndex(FluidSystem::solventComponentIndex(phaseIdx));
|
||||||
LhsEval surfaceVolume =
|
LhsEval surfaceVolume =
|
||||||
Toolbox::template decay<LhsEval>(fs.saturation(phaseIdx))
|
Toolbox::template decay<LhsEval>(fs.saturation(phaseIdx))
|
||||||
|
Loading…
Reference in New Issue
Block a user