mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #4875 from OPM/fix-dual-porosity-issues
Fix dual porosity issues
This commit is contained in:
commit
bb74ac24f8
@ -89,19 +89,22 @@ std::vector<std::vector<int>> RifActiveCellsReader::activeCellsFromPorvKeyword(
|
|||||||
|
|
||||||
if ( porvValues[poreValueIndex] > 0.0 )
|
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
|
else
|
||||||
{
|
{
|
||||||
activeCellsOneGrid[indexToCell] += CELL_ACTIVE_FRACTURE;
|
activeCellsOneGrid[indexToCell] = CELL_ACTIVE_MATRIX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
activeCellsOneGrid[indexToCell] = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
activeCellsAllGrids.push_back( activeCellsOneGrid );
|
activeCellsAllGrids.push_back( activeCellsOneGrid );
|
||||||
|
@ -306,6 +306,15 @@ void RimEclipseResultDefinition::fieldChangedByUi( const caf::PdmFieldHandle* ch
|
|||||||
{
|
{
|
||||||
m_porosityModel = m_porosityModelUiField;
|
m_porosityModel = m_porosityModelUiField;
|
||||||
m_resultVariableUiField = resultVariable();
|
m_resultVariableUiField = resultVariable();
|
||||||
|
|
||||||
|
RimEclipseView* eclipseView = nullptr;
|
||||||
|
this->firstAncestorOrThisOfType( eclipseView );
|
||||||
|
if ( eclipseView )
|
||||||
|
{
|
||||||
|
// Active cells can be different between matrix and fracture, make sure all geometry is recreated
|
||||||
|
eclipseView->scheduleReservoirGridGeometryRegen();
|
||||||
|
}
|
||||||
|
|
||||||
loadDataAndUpdate();
|
loadDataAndUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user