mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 13:29:08 -06:00
making init() function for WellInterface virtual.
This commit is contained in:
parent
4e4e383107
commit
033fe70620
@ -114,11 +114,11 @@ namespace Opm
|
||||
std::vector<EvalWell>& mob) const;
|
||||
|
||||
// TODO: the parameters need to be optimized/adjusted
|
||||
void init(const PhaseUsage* phase_usage_arg,
|
||||
const std::vector<bool>* active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const int num_cells);
|
||||
virtual void init(const PhaseUsage* phase_usage_arg,
|
||||
const std::vector<bool>* active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const int num_cells);
|
||||
|
||||
// Update the well_state based on solution
|
||||
void updateWellState(const BVector& dwells,
|
||||
|
@ -47,8 +47,9 @@ namespace Opm
|
||||
const double gravity_arg,
|
||||
const int num_cells)
|
||||
{
|
||||
WellInterface<TypeTag>(phase_usage_arg, active_arg,
|
||||
vfp_properties_arg, gravity_arg, num_cells);
|
||||
WellInterface<TypeTag>::init(phase_usage_arg, active_arg,
|
||||
vfp_properties_arg, gravity_arg, num_cells);
|
||||
|
||||
|
||||
// setup sparsity pattern for the matrices
|
||||
// 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;
|
||||
|
||||
// TODO: the parameters need to be optimized/adjusted
|
||||
void init(const PhaseUsage* phase_usage_arg,
|
||||
const std::vector<bool>* active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const int num_cells);
|
||||
virtual void init(const PhaseUsage* phase_usage_arg,
|
||||
const std::vector<bool>* active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
const int num_cells);
|
||||
|
||||
// TODO: temporary
|
||||
virtual void setWellVariables(const WellState& well_state) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user