mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 07:43:27 -06:00
Fixed error message and reinstated dummy enthalpy update.
This commit is contained in:
parent
8977d64bc6
commit
7fe1ad5c69
@ -376,6 +376,7 @@ public:
|
||||
// and the thermal condictivity coefficients
|
||||
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
||||
if (!FluidSystem::phaseIsActive(phaseIdx)) {
|
||||
fs.setEnthalpy(phaseIdx, 0.0);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -297,7 +297,7 @@ public:
|
||||
(*this)[waterSaturationIdx] = FsToolbox::value(fluidState.saturation(waterPhaseIdx));
|
||||
(*this)[pressureSwitchIdx] = FsToolbox::value(fluidState.pressure(waterPhaseIdx));
|
||||
} else {
|
||||
throw std::logic_error("Only pure ware is presently allowed");
|
||||
throw std::logic_error("For single-phase runs, only pure water is presently allowed.");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user