mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 17:20:59 -06:00
BUGFIX. Currently handle ACTNUM in minPvFillProps_()
Make sure that inactive cells are not included in the averaging
This commit is contained in:
parent
0a4dfb6d69
commit
2b09aca23a
@ -382,6 +382,7 @@ namespace Opm
|
||||
const int* cartdims = Opm::UgGridHelpers::cartDims(grid);
|
||||
EclipseGridConstPtr eclgrid = eclState->getInputGrid();
|
||||
const auto& porv = eclState->get3DProperties().getDoubleGridProperty("PORV").getData();
|
||||
const auto& actnum = eclState->get3DProperties().getIntGridProperty("ACTNUM").getData();
|
||||
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
||||
const int nx = cartdims[0];
|
||||
const int ny = cartdims[1];
|
||||
@ -395,7 +396,7 @@ namespace Opm
|
||||
// that has pore volume less than the MINPV threshold
|
||||
int cartesianCellIdxAbove = cartesianCellIdx - nx*ny;
|
||||
while ( cartesianCellIdxAbove >= 0 &&
|
||||
porv[cartesianCellIdxAbove] > 0 &&
|
||||
actnum[cartesianCellIdxAbove] > 0 &&
|
||||
porv[cartesianCellIdxAbove] < eclgrid->getMinpvValue() ) {
|
||||
|
||||
// Volume weighted arithmetic average of NTG
|
||||
|
Loading…
Reference in New Issue
Block a user