Adapt to api changes of opm-parser.

This commit is contained in:
Liu Ming 2015-02-12 16:16:07 +08:00
parent 6cd0c47b94
commit 3ddb930d1f

View File

@ -103,7 +103,7 @@ namespace Opm
props.porosity()[cellIdx]
* multpv[cartesianCellIdx]
* ntg[cartesianCellIdx];
if (eclgrid->isMinpvfActive()) {
if (eclgrid->getMinpvMode() == MinpvMode::ModeEnum::OpmFIL) {
pvol_[cellIdx] *= AutoDiffGrid::cellVolume(grid, cellIdx);
} else {
pvol_[cellIdx] *= eclgrid->getCellVolume(cartesianCellIdx);