mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
flow: provide the correct episode size
This commit is contained in:
1 parent
aa87e215d0
commit
9b0be0f8ad
2 files changed
+5
-2
No files matched your search
@@ -984,6 +984,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
void writeOutput(bool isSubStep, bool verbose = true)
|
void writeOutput(bool isSubStep, bool verbose = true)
|
||||||
{
|
{
|
||||||
|
assert(!this->simulator().episodeWillBeOver() == isSubStep);
|
||||||
|
|
||||||
// use the generic code to prepare the output fields and to
|
// use the generic code to prepare the output fields and to
|
||||||
// write the desired VTK files.
|
// write the desired VTK files.
|
||||||
ParentType::writeOutput(isSubStep, verbose);
|
ParentType::writeOutput(isSubStep, verbose);
|
||||||
|
|||||||
@@ -232,13 +232,14 @@ public:
|
|||||||
report.output_write_time += perfTimer.stop();
|
report.output_write_time += perfTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
ebosSimulator_.setEpisodeIndex(timer.currentStepNum());
|
|
||||||
|
|
||||||
// Run a multiple steps of the solver depending on the time step control.
|
// Run a multiple steps of the solver depending on the time step control.
|
||||||
solverTimer.start();
|
solverTimer.start();
|
||||||
|
|
||||||
auto solver = createSolver(wellModel_());
|
auto solver = createSolver(wellModel_());
|
||||||
|
|
||||||
|
ebosSimulator_.startNextEpisode(ebosSimulator_.startTime() + schedule().getTimeMap().getTimePassedUntil(timer.currentStepNum()),
|
||||||
|
timer.currentStepLength());
|
||||||
|
ebosSimulator_.setEpisodeIndex(timer.currentStepNum());
|
||||||
solver->model().beginReportStep(firstRestartStep);
|
solver->model().beginReportStep(firstRestartStep);
|
||||||
firstRestartStep = false;
|
firstRestartStep = false;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user