mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Clone the Wells pointer for output use later.
This commit is contained in:
parent
9bfb3f909e
commit
2c50e208dd
@ -119,7 +119,7 @@ namespace Opm
|
||||
|
||||
const WellModel well_model(wells, wells_ecl, current_time_step);
|
||||
|
||||
well_state.init(well_model, state, prev_well_state);
|
||||
well_state.init(well_model, state, prev_well_state, wells);
|
||||
|
||||
// give the polymer and surfactant simulators the chance to do their stuff
|
||||
Base::asImpl().handleAdditionalWellInflow(timer, wells_manager, well_state, wells);
|
||||
|
@ -65,8 +65,11 @@ namespace Opm
|
||||
/// to give useful initial values to the bhp(), wellRates()
|
||||
/// and perfPhaseRates() fields, depending on controls
|
||||
template <class ReservoirState, class PrevWellState>
|
||||
void init(const MultisegmentWells& ms_wells, const ReservoirState& state, const PrevWellState& prevState)
|
||||
void init(const MultisegmentWells& ms_wells, const ReservoirState& state, const PrevWellState& prevState, const Wells* legacy_wells_ptr)
|
||||
{
|
||||
// Used by output facilities.
|
||||
this->wells_.reset( clone_wells( legacy_wells_ptr ) );
|
||||
|
||||
const std::vector<WellMultiSegmentConstPtr>& wells = ms_wells.msWells();
|
||||
const int nw = wells.size();
|
||||
nseg_ = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user