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:
parent
4e4e383107
commit
033fe70620
@ -114,7 +114,7 @@ namespace Opm
|
||||
std::vector<EvalWell>& mob) const;
|
||||
|
||||
// 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 VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
|
@ -47,9 +47,10 @@ namespace Opm
|
||||
const double gravity_arg,
|
||||
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);
|
||||
|
||||
|
||||
// setup sparsity pattern for the matrices
|
||||
// TODO: C and B are opposite compared with the notations used in the paper.
|
||||
//[A B^T [x = [ res
|
||||
|
@ -112,7 +112,7 @@ namespace Opm
|
||||
virtual std::vector<double>& perfPressureDiffs() = 0;
|
||||
|
||||
// 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 VFPProperties* vfp_properties_arg,
|
||||
const double gravity_arg,
|
||||
|
Loading…
Reference in New Issue
Block a user