Bugfix: fix dis/en-abling dissolution in the fluid state.

This affects the gas/water model, which should not have dissolution,
to be consistent with definitions of FluidState and ScalarFluidState
in the BlackOilIntensiveQuantities class.
This commit is contained in:
Atgeirr Flø Rasmussen 2022-09-30 10:58:05 +02:00
parent 616b145469
commit b9e157e3f5

View File

@ -73,6 +73,7 @@ class EclEquilInitializer
enum { dimWorld = GridView::dimensionworld }; enum { dimWorld = GridView::dimensionworld };
enum { enableTemperature = getPropValue<TypeTag, Properties::EnableTemperature>() }; enum { enableTemperature = getPropValue<TypeTag, Properties::EnableTemperature>() };
enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() }; enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() };
enum { enableDissolution = Indices::compositionSwitchIdx >= 0 };
enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() }; enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() };
enum { enableEvaporation = getPropValue<TypeTag, Properties::EnableEvaporation>() }; enum { enableEvaporation = getPropValue<TypeTag, Properties::EnableEvaporation>() };
enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() }; enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() };
@ -84,7 +85,7 @@ public:
FluidSystem, FluidSystem,
enableTemperature, enableTemperature,
enableEnergy, enableEnergy,
Indices::gasEnabled, enableDissolution,
enableEvaporation, enableEvaporation,
enableBrine, enableBrine,
enableSaltPrecipitation, enableSaltPrecipitation,