Fix update of grid nodes.

This commit is contained in:
Kristian Bendiksen 2024-04-12 14:56:32 +02:00
parent ce6199289f
commit 39b9a25faa
2 changed files with 7 additions and 9 deletions

View File

@ -1063,15 +1063,6 @@ bool RimEclipseCase::openReserviorCase()
}
}
// Update grids node
{
std::vector<RimGridCollection*> gridColls = descendantsIncludingThisOfType<RimGridCollection>();
for ( RimGridCollection* gridCollection : gridColls )
{
gridCollection->syncFromMainEclipseGrid();
}
}
return true;
}

View File

@ -385,6 +385,13 @@ void RimEclipseView::propagateEclipseCaseToChildObjects()
faultResultSettings()->customFaultResult()->setEclipseCase( currentEclipseCase );
cellFilterCollection()->setCase( currentEclipseCase );
m_streamlineCollection->setEclipseCase( currentEclipseCase );
// Update grids node
std::vector<RimGridCollection*> gridColls = descendantsIncludingThisOfType<RimGridCollection>();
for ( RimGridCollection* gridCollection : gridColls )
{
gridCollection->syncFromMainEclipseGrid();
}
}
//--------------------------------------------------------------------------------------------------