but it might cause issues later if someone uses sw directly.
For primaryVarsMeaningGas there might be an impact, depending on what primary variable is being used for gas.
There might be other bugs like this in the code, as it is hard to have an overview of all the different combinations of the different primary variable states.
For the case of gas being dissolved in water, the water saturation is not initialized explicitly, such that it is currently set to the default 0.0.
This fix should not change the behaviour of
primaryVarsMeaningWater
as the water saturation is hardcoded for the RSW case in line 768but it might cause issues later if someone uses sw directly.
For
primaryVarsMeaningGas
there might be an impact, depending on what primary variable is being used for gas.There might be other bugs like this in the code, as it is hard to have an overview of all the different combinations of the different primary variable states.