making init() function for WellInterface virtual.

This commit is contained in:
Kai Bao
2017-06-28 15:20:25 +02:00
parent 4e4e383107
commit 033fe70620
3 changed files with 13 additions and 12 deletions

View File

@@ -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.