mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
avoid setting entalpy in non active phases (assert will else be broken)
This commit is contained in:
parent
efe3313f85
commit
c1640aaf3e
@ -376,7 +376,7 @@ public:
|
|||||||
// and the thermal condictivity coefficients
|
// and the thermal condictivity coefficients
|
||||||
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
||||||
if (!FluidSystem::phaseIsActive(phaseIdx)) {
|
if (!FluidSystem::phaseIsActive(phaseIdx)) {
|
||||||
fs.setEnthalpy(phaseIdx, 0.0);
|
//fs.setEnthalpy(phaseIdx, 0.0);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user