mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-25 16:51:00 -06:00
Merge pull request #1821 from andlaus/tickling_the_dragon
flow: provide the correct episode size
This commit is contained in:
commit
6887f3bc73
@ -984,6 +984,8 @@ public:
|
||||
*/
|
||||
void writeOutput(bool isSubStep, bool verbose = true)
|
||||
{
|
||||
assert(!this->simulator().episodeWillBeOver() == isSubStep);
|
||||
|
||||
// use the generic code to prepare the output fields and to
|
||||
// write the desired VTK files.
|
||||
ParentType::writeOutput(isSubStep, verbose);
|
||||
|
@ -244,13 +244,14 @@ public:
|
||||
report.output_write_time += perfTimer.stop();
|
||||
}
|
||||
|
||||
ebosSimulator_.setEpisodeIndex(timer.currentStepNum());
|
||||
|
||||
// Run a multiple steps of the solver depending on the time step control.
|
||||
solverTimer.start();
|
||||
|
||||
auto solver = createSolver(wellModel_());
|
||||
|
||||
ebosSimulator_.startNextEpisode(ebosSimulator_.startTime() + schedule().getTimeMap().getTimePassedUntil(timer.currentStepNum()),
|
||||
timer.currentStepLength());
|
||||
ebosSimulator_.setEpisodeIndex(timer.currentStepNum());
|
||||
solver->model().beginReportStep(firstRestartStep);
|
||||
firstRestartStep = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user