avoid setting entalpy in non active phases (assert will else be broken)

This commit is contained in:
hnil 2019-05-21 21:52:00 +02:00 committed by Atgeirr Flø Rasmussen
parent efe3313f85
commit c1640aaf3e

View File

@ -376,7 +376,7 @@ public:
// and the thermal condictivity coefficients
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
if (!FluidSystem::phaseIsActive(phaseIdx)) {
fs.setEnthalpy(phaseIdx, 0.0);
//fs.setEnthalpy(phaseIdx, 0.0);
continue;
}