mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4874 Dual Porosity : Missing active cells in some cases
This commit is contained in:
parent
a53f1e1e91
commit
61db98ef04
@ -89,19 +89,22 @@ std::vector<std::vector<int>> RifActiveCellsReader::activeCellsFromPorvKeyword(
|
||||
|
||||
if ( porvValues[poreValueIndex] > 0.0 )
|
||||
{
|
||||
if ( !dualPorosity || poreValueIndex < porvValues.size() / 2 )
|
||||
if ( dualPorosity )
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] = CELL_ACTIVE_MATRIX;
|
||||
if ( poreValueIndex < activeCellCount )
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] += CELL_ACTIVE_MATRIX;
|
||||
}
|
||||
else
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] += CELL_ACTIVE_FRACTURE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] += CELL_ACTIVE_FRACTURE;
|
||||
activeCellsOneGrid[indexToCell] = CELL_ACTIVE_MATRIX;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
activeCellsAllGrids.push_back( activeCellsOneGrid );
|
||||
|
Loading…
Reference in New Issue
Block a user