mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 12:06:54 -06:00
compositionswitch should not be enabled for gas-water system
This commit is contained in:
parent
c8ad8bc368
commit
abcf933673
@ -95,9 +95,9 @@ struct BlackOilTwoPhaseIndices
|
|||||||
* \brief Index of the switching variable which determines the composition of the
|
* \brief Index of the switching variable which determines the composition of the
|
||||||
* hydrocarbon phases.
|
* hydrocarbon phases.
|
||||||
*
|
*
|
||||||
* \note For two-phase water oil models this is disabled.
|
* \note For two-phase water oil and water gas models this is disabled.
|
||||||
*/
|
*/
|
||||||
static const int compositionSwitchIdx = gasEnabled ? PVOffset + 1 : -10000;
|
static const int compositionSwitchIdx = (gasEnabled && oilEnabled) ? PVOffset + 1 : -10000;
|
||||||
|
|
||||||
//! Index of the primary variable for the first solvent
|
//! Index of the primary variable for the first solvent
|
||||||
static const int solventSaturationIdx =
|
static const int solventSaturationIdx =
|
||||||
|
Loading…
Reference in New Issue
Block a user