mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
making init() function for WellInterface virtual.
This commit is contained in:
@@ -114,11 +114,11 @@ namespace Opm
|
|||||||
std::vector<EvalWell>& mob) const;
|
std::vector<EvalWell>& mob) const;
|
||||||
|
|
||||||
// TODO: the parameters need to be optimized/adjusted
|
// TODO: the parameters need to be optimized/adjusted
|
||||||
void init(const PhaseUsage* phase_usage_arg,
|
virtual void init(const PhaseUsage* phase_usage_arg,
|
||||||
const std::vector<bool>* active_arg,
|
const std::vector<bool>* active_arg,
|
||||||
const VFPProperties* vfp_properties_arg,
|
const VFPProperties* vfp_properties_arg,
|
||||||
const double gravity_arg,
|
const double gravity_arg,
|
||||||
const int num_cells);
|
const int num_cells);
|
||||||
|
|
||||||
// Update the well_state based on solution
|
// Update the well_state based on solution
|
||||||
void updateWellState(const BVector& dwells,
|
void updateWellState(const BVector& dwells,
|
||||||
|
|||||||
@@ -47,8 +47,9 @@ namespace Opm
|
|||||||
const double gravity_arg,
|
const double gravity_arg,
|
||||||
const int num_cells)
|
const int num_cells)
|
||||||
{
|
{
|
||||||
WellInterface<TypeTag>(phase_usage_arg, active_arg,
|
WellInterface<TypeTag>::init(phase_usage_arg, active_arg,
|
||||||
vfp_properties_arg, gravity_arg, num_cells);
|
vfp_properties_arg, gravity_arg, num_cells);
|
||||||
|
|
||||||
|
|
||||||
// setup sparsity pattern for the matrices
|
// setup sparsity pattern for the matrices
|
||||||
// TODO: C and B are opposite compared with the notations used in the paper.
|
// TODO: C and B are opposite compared with the notations used in the paper.
|
||||||
|
|||||||
@@ -112,11 +112,11 @@ namespace Opm
|
|||||||
virtual std::vector<double>& perfPressureDiffs() = 0;
|
virtual std::vector<double>& perfPressureDiffs() = 0;
|
||||||
|
|
||||||
// TODO: the parameters need to be optimized/adjusted
|
// TODO: the parameters need to be optimized/adjusted
|
||||||
void init(const PhaseUsage* phase_usage_arg,
|
virtual void init(const PhaseUsage* phase_usage_arg,
|
||||||
const std::vector<bool>* active_arg,
|
const std::vector<bool>* active_arg,
|
||||||
const VFPProperties* vfp_properties_arg,
|
const VFPProperties* vfp_properties_arg,
|
||||||
const double gravity_arg,
|
const double gravity_arg,
|
||||||
const int num_cells);
|
const int num_cells);
|
||||||
|
|
||||||
// TODO: temporary
|
// TODO: temporary
|
||||||
virtual void setWellVariables(const WellState& well_state) = 0;
|
virtual void setWellVariables(const WellState& well_state) = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user