mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Grid Ensemble: add methods to add view
This commit is contained in:
@@ -312,6 +312,14 @@ void RimEclipseCase::initAfterRead()
|
||||
RimEclipseView* RimEclipseCase::createAndAddReservoirView( bool useGlobalViewCollection )
|
||||
{
|
||||
RimEclipseViewCollection* viewColl = useGlobalViewCollection ? globalViewCollection() : viewCollection();
|
||||
return createAndAddReservoirView( viewColl );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseView* RimEclipseCase::createAndAddReservoirView( RimEclipseViewCollection* viewColl )
|
||||
{
|
||||
if ( !viewColl ) return nullptr;
|
||||
|
||||
return viewColl->addView( this );
|
||||
|
||||
Reference in New Issue
Block a user