A small fixing to make the sim_fibo_ad using the new timer.

This commit is contained in:
Kai Bao 2014-03-27 11:15:55 +01:00
parent d4f1a89370
commit 0914841823
2 changed files with 3 additions and 4 deletions

View File

@ -205,7 +205,7 @@ try
std::shared_ptr<EclipseState> 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());

View File

@ -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();