Remove water saturation as primary variable of flow_onephase

This commit is contained in:
Cintia Goncalves Machado 2020-11-23 10:41:11 +01:00 committed by GitHub
parent 215c885d0b
commit 47c06c54d8

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.");