mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Give the parallel well info object to the MultisegmentWellEval class as well
This commit is contained in:
parent
655f4011c7
commit
449847da9e
@ -53,8 +53,9 @@ namespace Opm
|
||||
|
||||
template<typename FluidSystem, typename Indices>
|
||||
MultisegmentWellEval<FluidSystem,Indices>::
|
||||
MultisegmentWellEval(WellInterfaceIndices<FluidSystem,Indices>& baseif)
|
||||
MultisegmentWellEval(WellInterfaceIndices<FluidSystem,Indices>& baseif, const ParallelWellInfo<Scalar>& pw_info)
|
||||
: MultisegmentWellGeneric<Scalar>(baseif)
|
||||
, pw_info_(pw_info)
|
||||
, baseif_(baseif)
|
||||
, linSys_(*this)
|
||||
, primary_variables_(baseif)
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <opm/simulators/wells/MultisegmentWellGeneric.hpp>
|
||||
#include <opm/simulators/wells/MultisegmentWellPrimaryVariables.hpp>
|
||||
#include <opm/simulators/wells/MultisegmentWellSegments.hpp>
|
||||
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
||||
|
||||
#include <opm/material/densead/Evaluation.hpp>
|
||||
|
||||
@ -67,9 +68,10 @@ public:
|
||||
//! \brief Returns a const reference to equation system.
|
||||
const Equations& linSys() const
|
||||
{ return linSys_; }
|
||||
const ParallelWellInfo<Scalar>& pw_info_;
|
||||
|
||||
protected:
|
||||
MultisegmentWellEval(WellInterfaceIndices<FluidSystem,Indices>& baseif);
|
||||
MultisegmentWellEval(WellInterfaceIndices<FluidSystem,Indices>& baseif, const ParallelWellInfo<Scalar>& pw_info);
|
||||
|
||||
void initMatrixAndVectors();
|
||||
|
||||
|
@ -67,7 +67,7 @@ namespace Opm
|
||||
const int index_of_well,
|
||||
const std::vector<PerforationData<Scalar>>& perf_data)
|
||||
: Base(well, pw_info, time_step, param, rate_converter, pvtRegionIdx, num_components, num_phases, index_of_well, perf_data)
|
||||
, MSWEval(static_cast<WellInterfaceIndices<FluidSystem,Indices>&>(*this))
|
||||
, MSWEval(static_cast<WellInterfaceIndices<FluidSystem,Indices>&>(*this), pw_info)
|
||||
, regularize_(false)
|
||||
, segment_fluid_initial_(this->numberOfSegments(), std::vector<Scalar>(this->num_components_, 0.0))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user