Merge pull request #6335 from daavid00/rundry

Fixing --enable-dry-run=1
This commit is contained in:
Tor Harald Sandve authored and GitHub committed 2025-06-20 09:59:17 +02:00
commit dac43aa446
1 file changed
+6 -4
@@ -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_();
}
}
}
}