mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Refactor connection between cases and views.
Eclipse grid views and contour maps are not longer a child of the case. The views are not separate collections (one for grid and one for contour maps) on root level.
This commit is contained in:
1 parent
8f96d8b131
commit
b5666c333a
57 files changed
+626
-286
No files matched your search
@@ -190,9 +190,11 @@ void RimAdvancedSnapshotExportDefinition::fieldChangedByUi( const caf::PdmFieldH
|
||||
{
|
||||
actCellInfo = RigReservoirGridTools::activeCellInfo( view() );
|
||||
|
||||
auto rimCase = view()->firstAncestorOrThisOfTypeAsserted<RimCase>();
|
||||
|
||||
mainGrid = RigReservoirGridTools::mainGrid( rimCase );
|
||||
auto rimCase = view()->ownerCase();
|
||||
if ( rimCase )
|
||||
{
|
||||
mainGrid = RigReservoirGridTools::mainGrid( rimCase );
|
||||
}
|
||||
}
|
||||
|
||||
if ( mainGrid && actCellInfo )
|
||||
|
||||
Reference in new issue
Block a user