Make numPhases() calls use asImpl().

This commit is contained in:
Atgeirr Flø Rasmussen 2015-09-30 13:23:41 +02:00
parent 3d86b9b619
commit 67ac59288d

View File

@ -2384,7 +2384,7 @@ namespace detail {
const int nc = Opm::AutoDiffGrid::numCells(grid_); const int nc = Opm::AutoDiffGrid::numCells(grid_);
const int nw = localWellsActive() ? wells().number_of_wells : 0; const int nw = localWellsActive() ? wells().number_of_wells : 0;
const int np = numPhases(); const int np = asImpl().numPhases();
assert(int(rq_.size()) == np); assert(int(rq_.size()) == np);
const V pv = geo_.poreVolume(); const V pv = geo_.poreVolume();
@ -2501,7 +2501,7 @@ namespace detail {
const int nc = Opm::AutoDiffGrid::numCells(grid_); const int nc = Opm::AutoDiffGrid::numCells(grid_);
const int nw = localWellsActive() ? wells().number_of_wells : 0; const int nw = localWellsActive() ? wells().number_of_wells : 0;
const int np = numPhases(); const int np = asImpl().numPhases();
const V pv = geo_.poreVolume(); const V pv = geo_.poreVolume();
std::vector<double> R_sum(np); std::vector<double> R_sum(np);