fixing warnings in other folder under opm-simulators

This commit is contained in:
Kai Bao
2019-06-26 09:50:56 +02:00
parent 53b15527c2
commit 9a2fcdbfd5
14 changed files with 50 additions and 61 deletions

View File

@@ -204,10 +204,6 @@ public:
wellModel_().initFromRestartFile(*restartValues);
}
// beginReportStep(...) wants to know when we are at the
// beginning of a restart
bool firstRestartStep = isRestart();
// Main simulation loop.
while (!timer.done()) {
// Report timestep.
@@ -252,9 +248,7 @@ public:
ebosSimulator_.startNextEpisode(ebosSimulator_.startTime() + schedule().getTimeMap().getTimePassedUntil(timer.currentStepNum()),
timer.currentStepLength());
ebosSimulator_.setEpisodeIndex(timer.currentStepNum());
solver->model().beginReportStep(firstRestartStep);
firstRestartStep = false;
solver->model().beginReportStep();
// If sub stepping is enabled allow the solver to sub cycle
// in case the report steps are too large for the solver to converge