Skip to content

Commit

Permalink
Grid Case Statistics: Show well data from first realization
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Mar 19, 2024
1 parent 7d0ec87 commit b254c5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ void RimEclipseStatisticsCase::selectAllTimeSteps()
}
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseStatisticsCase::setWellDataSourceCase( const QString& reservoirDescription )
{
m_wellDataSourceCase = reservoirDescription;
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class RimEclipseStatisticsCase : public RimEclipseCase
void setSourceProperties( RiaDefines::ResultCatType propertyType, const std::vector<QString>& propertyNames );
void selectAllTimeSteps();

void setWellDataSourceCase( const QString& reservoirDescription );

private:
void scheduleACTIVEGeometryRegenOnReservoirViews();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ RimEclipseStatisticsCase* RimIdenticalGridCaseGroup::createStatisticsCase( bool

if ( selectDefaultResults ) newStatisticsCase->populateResultSelectionAfterLoadingGrid();

auto reservoirs = caseCollection->reservoirs().childrenByType();
if ( !reservoirs.empty() )
{
auto caseDescription = reservoirs.front()->caseUserDescription();
newStatisticsCase->setWellDataSourceCase( caseDescription );
}

newStatisticsCase->openEclipseGridFile();
newStatisticsCase->computeActiveCellsBoundingBox();
newStatisticsCase->selectAllTimeSteps();
Expand Down

0 comments on commit b254c5f

Please sign in to comment.