mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-29 10:40:59 -06:00
Remove water saturation as primary variable of flow_onephase
This commit is contained in:
parent
215c885d0b
commit
47c06c54d8
@ -306,7 +306,6 @@ public:
|
|||||||
// assign the actual primary variables
|
// assign the actual primary variables
|
||||||
if (primaryVarsMeaning() == OnePhase_p) {
|
if (primaryVarsMeaning() == OnePhase_p) {
|
||||||
if (waterEnabled) {
|
if (waterEnabled) {
|
||||||
(*this)[waterSaturationIdx] = FsToolbox::value(fluidState.saturation(waterPhaseIdx));
|
|
||||||
(*this)[pressureSwitchIdx] = FsToolbox::value(fluidState.pressure(waterPhaseIdx));
|
(*this)[pressureSwitchIdx] = FsToolbox::value(fluidState.pressure(waterPhaseIdx));
|
||||||
} else {
|
} else {
|
||||||
throw std::logic_error("For single-phase runs, only pure water 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