compositionswitch should not be enabled for gas-water system

This commit is contained in:
Paul Egberts 2021-08-01 21:14:10 +02:00
parent c8ad8bc368
commit abcf933673

View File

@ -95,9 +95,9 @@ struct BlackOilTwoPhaseIndices
* \brief Index of the switching variable which determines the composition of the
* 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
static const int solventSaturationIdx =