mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
Fix to write vtk (if enabled) for dry runs in cases with drsdt
This commit is contained in:
1 parent
32a8c07dad
commit
191581f302
1 file changed
+7
-7
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user