mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make numPhases() calls use asImpl().
This commit is contained in:
parent
3d86b9b619
commit
67ac59288d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user