Fixing --enable-dry-run=1

This commit is contained in:
David Landa Marban committed 2025-06-18 13:32:29 +02:00
1 parent e3035cf4d0
commit b770d8bf90
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_();
}
}
}
}