From 191581f3029faee0158221094d688ec4a15fce7a Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Fri, 7 Mar 2025 17:05:29 +0100 Subject: [PATCH] Fix to write vtk (if enabled) for dry runs in cases with drsdt --- opm/simulators/flow/FlowProblemBlackoil.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opm/simulators/flow/FlowProblemBlackoil.hpp b/opm/simulators/flow/FlowProblemBlackoil.hpp index 87e4b45895..bbbba6ff42 100644 --- a/opm/simulators/flow/FlowProblemBlackoil.hpp +++ b/opm/simulators/flow/FlowProblemBlackoil.hpp @@ -392,16 +392,10 @@ public: this->drift_ = 0.0; } - if (this->enableVtkOutput_() && eclState.getIOConfig().initOnly()) { - simulator.setTimeStepSize(0.0); - simulator.model().applyInitialSolution(); - FlowProblemType::writeOutput(true); - } - // after finishing the initialization and writing the initial solution, we move // to the first "real" episode/report step // for restart the episode index and start is already set - if (!initconfig.restartRequested()) { + if (!initconfig.restartRequested() && !eclState.getIOConfig().initOnly()) { simulator.startNextEpisode(schedule.seconds(1)); simulator.setEpisodeIndex(0); simulator.setTimeStepIndex(0); @@ -431,6 +425,12 @@ public: this->mixControls_.init(this->model().numGridDof(), this->episodeIndex(), eclState.runspec().tabdims().getNumPVTTables()); + + if (this->enableVtkOutput_() && eclState.getIOConfig().initOnly()) { + simulator.setTimeStepSize(0.0); + simulator.model().applyInitialSolution(); + FlowProblemType::writeOutput(true); + } } /*!