Merge pull request #637 from goncalvesmachadoc/patch-1

Remove water saturation as primary variable of flow_onephase
This commit is contained in:
Atgeirr Flø Rasmussen 2020-12-01 08:35:16 +01:00 committed by GitHub
commit 732931d952

View File

@ -306,7 +306,6 @@ public:
// assign the actual primary variables
if (primaryVarsMeaning() == OnePhase_p) {
if (waterEnabled) {
(*this)[waterSaturationIdx] = FsToolbox::value(fluidState.saturation(waterPhaseIdx));
(*this)[pressureSwitchIdx] = FsToolbox::value(fluidState.pressure(waterPhaseIdx));
} else {
throw std::logic_error("For single-phase runs, only pure water is presently allowed.");