diff --git a/examples/flow.cpp b/examples/flow.cpp index 2b6e02bb1..2da72b500 100644 --- a/examples/flow.cpp +++ b/examples/flow.cpp @@ -434,7 +434,7 @@ try << std::flush; } - SimulatorReport fullReport = simulator.run(eclipseState, simtimer, state); + SimulatorReport fullReport = simulator.run(simtimer, state); if( output_cout ) { diff --git a/examples/flow_solvent.cpp b/examples/flow_solvent.cpp index 857cedc44..9228bdec2 100644 --- a/examples/flow_solvent.cpp +++ b/examples/flow_solvent.cpp @@ -407,7 +407,7 @@ try << std::flush; } - SimulatorReport fullReport = simulator.run(eclipseState, simtimer, state); + SimulatorReport fullReport = simulator.run(simtimer, state); if( output_cout ) { diff --git a/opm/autodiff/SimulatorBase.hpp b/opm/autodiff/SimulatorBase.hpp index abee4f7f3..1680ace03 100644 --- a/opm/autodiff/SimulatorBase.hpp +++ b/opm/autodiff/SimulatorBase.hpp @@ -115,7 +115,7 @@ namespace Opm /// \param[in] gravity if non-null, gravity vector /// \param[in] disgas true for dissolved gas option /// \param[in] vapoil true for vaporized oil option - /// \param[in] eclipse_state + /// \param[in] eclipse_state the object which represents an internalized ECL deck /// \param[in] output_writer /// \param[in] threshold_pressures_by_face if nonempty, threshold pressures that inhibit flow SimulatorBase(const parameter::ParameterGroup& param, @@ -134,13 +134,10 @@ namespace Opm /// Run the simulation. /// This will run succesive timesteps until timer.done() is true. It will /// modify the reservoir and well states. - /// \param[in] eclState the object which represents an internalized ECL deck /// \param[in,out] timer governs the requested reporting timesteps /// \param[in,out] state state of reservoir: pressure, fluxes - /// \param[in,out] well_state state of wells: bhp, perforation rates /// \return simulation report, with timing data - SimulatorReport run(EclipseStateConstPtr eclState, - SimulatorTimer& timer, + SimulatorReport run(SimulatorTimer& timer, ReservoirState& state); protected: diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index 6bf56b055..d6505b55c 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -74,8 +74,7 @@ namespace Opm } template - SimulatorReport SimulatorBase::run(EclipseStateConstPtr eclState, - SimulatorTimer& timer, + SimulatorReport SimulatorBase::run(SimulatorTimer& timer, ReservoirState& state) { WellState prev_well_state; @@ -89,7 +88,7 @@ namespace Opm std::string tstep_filename = output_writer_.outputDirectory() + "/step_timing.txt"; std::ofstream tstep_os(tstep_filename.c_str()); - const auto& schedule = eclState->getSchedule(); + const auto& schedule = eclipse_state_->getSchedule(); const auto& events = schedule->getEvents(); // adaptive time stepping @@ -177,7 +176,6 @@ namespace Opm // section // // TODO (?): handle the parallel case (maybe this works out of the box) - ScheduleConstPtr schedule = eclipse_state_->getSchedule(); DeckConstPtr miniDeck = schedule->getModifierDeck(nextTimeStepIdx); eclipse_state_->applyModifierDeck(miniDeck); geo_.update(grid_, props_, eclipse_state_, gravity_);