diff --git a/opm/models/blackoil/blackoilintensivequantities.hh b/opm/models/blackoil/blackoilintensivequantities.hh index 7d83eb79e8..c022511036 100644 --- a/opm/models/blackoil/blackoilintensivequantities.hh +++ b/opm/models/blackoil/blackoilintensivequantities.hh @@ -641,10 +641,12 @@ public: } if constexpr (enableConvectiveMixing) { // The ifs are here is to avoid extra calculations for - // cases without CO2STORE and DRSDTCON. - if (problem.simulator().vanguard().eclState().runspec().co2Storage()) { - if (problem.drsdtconIsActive(globalSpaceIdx, problem.simulator().episodeIndex())) { - asImp_().updateSaturatedDissolutionFactor_(); + // cases with dry runs and without CO2STORE and DRSDTCON. + if (!problem.simulator().vanguard().eclState().getIOConfig().initOnly()) { + if (problem.simulator().vanguard().eclState().runspec().co2Storage()) { + if (problem.drsdtconIsActive(globalSpaceIdx, problem.simulator().episodeIndex())) { + asImp_().updateSaturatedDissolutionFactor_(); + } } } }