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,9 +89,11 @@ 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
|
||||
{
|
||||
@ -100,7 +102,8 @@ std::vector<std::vector<int>> RifActiveCellsReader::activeCellsFromPorvKeyword(
|
||||
}
|
||||
else
|
||||
{
|
||||
activeCellsOneGrid[indexToCell] = 0;
|
||||
activeCellsOneGrid[indexToCell] = CELL_ACTIVE_MATRIX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user