mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid segfault for two-phase case.
This commit is contained in:
parent
61eb74b1d6
commit
b31f33f567
@ -229,6 +229,9 @@ public:
|
||||
}
|
||||
|
||||
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
|
||||
if (!FluidSystem::phaseIsActive(phaseIdx)) {
|
||||
continue;
|
||||
}
|
||||
if (pressureOutput_())
|
||||
pressure_[phaseIdx][I] = Opm::getValue(fs.pressure(phaseIdx));
|
||||
if (densityOutput_())
|
||||
|
Loading…
Reference in New Issue
Block a user