diff --git a/examples/sim_fibo_ad.cpp b/examples/sim_fibo_ad.cpp index 196ab009d..76777d784 100644 --- a/examples/sim_fibo_ad.cpp +++ b/examples/sim_fibo_ad.cpp @@ -205,7 +205,7 @@ try std::shared_ptr eclipseState(new EclipseState(newParserDeck)); // initialize variables - simtimer.init(timeMap, /*beginReportStepIdx=*/0, /*endReportStepIdx=*/0); + simtimer.init(timeMap); SimulatorReport fullReport; for (size_t reportStepIdx = 0; reportStepIdx < timeMap->numTimesteps(); ++reportStepIdx) { @@ -228,9 +228,7 @@ try well_state.init(wells.c_wells(), state); } - simtimer.init(timeMap, - /*beginReportStepIdx=*/reportStepIdx, - /*endReportStepIdx=*/reportStepIdx + 1); + simtimer.setCurrentStepNum(reportStepIdx); if (reportStepIdx == 0) outputWriter.writeInit(simtimer, state, well_state.basicWellState()); diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoil.cpp b/opm/autodiff/SimulatorFullyImplicitBlackoil.cpp index 9416cb8ab..9d9b022e5 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoil.cpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoil.cpp @@ -412,6 +412,7 @@ namespace Opm // advance to next timestep before reporting at this location ++timer; + break; // this is a temporary measure } total_timer.stop();