fix compositionSwitchEnabled specification. For gas-water it is disabled

This commit is contained in:
Paul Egberts 2021-08-01 21:25:02 +02:00
parent a217974f9d
commit 0f2ced8891

View File

@ -279,7 +279,7 @@ class BlackOilModel
enum { numEq = getPropValue<TypeTag, Properties::NumEq>() };
enum { enableDiffusion = getPropValue<TypeTag, Properties::EnableDiffusion>() };
static const bool compositionSwitchEnabled = Indices::gasEnabled;
static const bool compositionSwitchEnabled = Indices::compositionSwitchIdx >= 0;
static const bool waterEnabled = Indices::waterEnabled;
using SolventModule = BlackOilSolventModule<TypeTag>;