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,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -306,6 +306,15 @@ void RimEclipseResultDefinition::fieldChangedByUi( const caf::PdmFieldHandle* ch
|
||||
{
|
||||
m_porosityModel = m_porosityModelUiField;
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user