pass wells manager from sim_poly_fibo to Simulator class, instead of directly

create it in Simulator class, since polymer inflow need deck and wells.
This commit is contained in:
Liu Ming
2014-10-24 14:04:57 +08:00
parent 61c76c4294
commit ba6fef4fbd
3 changed files with 68 additions and 39 deletions

View File

@@ -37,6 +37,7 @@ namespace Opm
class SimulatorTimer;
class PolymerBlackoilState;
class WellStateFullyImplicitBlackoil;
class WellsManager;
class EclipseState;
class EclipseWriter;
class PolymerPropsAd;
@@ -86,6 +87,7 @@ namespace Opm
const RockCompressibility* rock_comp_props,
NewtonIterationBlackoilInterface& linsolver,
const PolymerInflowInterface& polymer_inflow,
WellsManager& well_manager,
const double* gravity,
const bool disgas,
const bool vapoil,
@@ -102,7 +104,8 @@ namespace Opm
/// \param[in,out] well_state state of wells: bhp, perforation rates
/// \return simulation report, with timing data
SimulatorReport run(SimulatorTimer& timer,
PolymerBlackoilState& state);
PolymerBlackoilState& state,
WellStateFullyImplicitBlackoil& well_state);
private:
class Impl;