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:
@@ -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_())
|
||||
|
||||
Reference in New Issue
Block a user