mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #112 from GitPaean/fix_using_new_timer
A small fix to make sim_fibo_ad use the new SimulatorTimer.
This commit is contained in:
commit
faba01f917
@ -205,7 +205,7 @@ try
|
|||||||
std::shared_ptr<EclipseState> eclipseState(new EclipseState(newParserDeck));
|
std::shared_ptr<EclipseState> eclipseState(new EclipseState(newParserDeck));
|
||||||
|
|
||||||
// initialize variables
|
// initialize variables
|
||||||
simtimer.init(timeMap, /*beginReportStepIdx=*/0, /*endReportStepIdx=*/0);
|
simtimer.init(timeMap);
|
||||||
|
|
||||||
SimulatorReport fullReport;
|
SimulatorReport fullReport;
|
||||||
for (size_t reportStepIdx = 0; reportStepIdx < timeMap->numTimesteps(); ++reportStepIdx) {
|
for (size_t reportStepIdx = 0; reportStepIdx < timeMap->numTimesteps(); ++reportStepIdx) {
|
||||||
@ -228,9 +228,7 @@ try
|
|||||||
well_state.init(wells.c_wells(), state);
|
well_state.init(wells.c_wells(), state);
|
||||||
}
|
}
|
||||||
|
|
||||||
simtimer.init(timeMap,
|
simtimer.setCurrentStepNum(reportStepIdx);
|
||||||
/*beginReportStepIdx=*/reportStepIdx,
|
|
||||||
/*endReportStepIdx=*/reportStepIdx + 1);
|
|
||||||
|
|
||||||
if (reportStepIdx == 0)
|
if (reportStepIdx == 0)
|
||||||
outputWriter.writeInit(simtimer, state, well_state.basicWellState());
|
outputWriter.writeInit(simtimer, state, well_state.basicWellState());
|
||||||
|
@ -412,6 +412,7 @@ namespace Opm
|
|||||||
|
|
||||||
// advance to next timestep before reporting at this location
|
// advance to next timestep before reporting at this location
|
||||||
++timer;
|
++timer;
|
||||||
|
break; // this is a temporary measure
|
||||||
}
|
}
|
||||||
|
|
||||||
total_timer.stop();
|
total_timer.stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user