mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #104 from andlaus/sim_fibo_ad_print_reportstep
sim_fibo_ad: re-add ouputting of the current report step when using opm-parser
This commit is contained in:
commit
ee28454b84
@ -213,13 +213,20 @@ try
|
|||||||
simtimer.init(timeMap, /*beginReportStepIdx=*/0, /*endReportStepIdx=*/0);
|
simtimer.init(timeMap, /*beginReportStepIdx=*/0, /*endReportStepIdx=*/0);
|
||||||
|
|
||||||
SimulatorReport fullReport;
|
SimulatorReport fullReport;
|
||||||
for (size_t episodeIdx = 0; episodeIdx < timeMap->numTimesteps(); ++episodeIdx) {
|
for (size_t reportStepIdx = 0; reportStepIdx < timeMap->numTimesteps(); ++reportStepIdx) {
|
||||||
|
// Report on start of a report step.
|
||||||
|
std::cout << "\n"
|
||||||
|
<< "---------------------------------------------------------------\n"
|
||||||
|
<< "-------------- Starting report step " << reportStepIdx << " --------------\n"
|
||||||
|
<< "---------------------------------------------------------------\n"
|
||||||
|
<< "\n";
|
||||||
|
|
||||||
WellsManager wells(eclipseState,
|
WellsManager wells(eclipseState,
|
||||||
episodeIdx,
|
reportStepIdx,
|
||||||
*grid->c_grid(),
|
*grid->c_grid(),
|
||||||
props->permeability());
|
props->permeability());
|
||||||
|
|
||||||
if (episodeIdx == 0) {
|
if (reportStepIdx == 0) {
|
||||||
// @@@ HACK: we should really make a new well state and
|
// @@@ HACK: we should really make a new well state and
|
||||||
// properly transfer old well state to it every epoch,
|
// properly transfer old well state to it every epoch,
|
||||||
// since number of wells may change etc.
|
// since number of wells may change etc.
|
||||||
@ -227,10 +234,10 @@ try
|
|||||||
}
|
}
|
||||||
|
|
||||||
simtimer.init(timeMap,
|
simtimer.init(timeMap,
|
||||||
/*beginReportStepIdx=*/episodeIdx,
|
/*beginReportStepIdx=*/reportStepIdx,
|
||||||
/*endReportStepIdx=*/episodeIdx + 1);
|
/*endReportStepIdx=*/reportStepIdx + 1);
|
||||||
|
|
||||||
if (episodeIdx == 0)
|
if (reportStepIdx == 0)
|
||||||
outputWriter.writeInit(simtimer, state, well_state.basicWellState());
|
outputWriter.writeInit(simtimer, state, well_state.basicWellState());
|
||||||
|
|
||||||
// Create and run simulator.
|
// Create and run simulator.
|
||||||
|
Loading…
Reference in New Issue
Block a user