mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Grid Case Statistics: Show well data from first realization
This commit is contained in:
@@ -132,8 +132,6 @@ private:
|
||||
|
||||
bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
|
||||
|
||||
static cvf::Color3f mapWellMeasurementToColor( const QString& measurementKind, double value );
|
||||
|
||||
bool isWellPathEnabled( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
|
||||
|
||||
private:
|
||||
|
||||
@@ -285,6 +285,14 @@ void RimEclipseStatisticsCase::selectAllTimeSteps()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseStatisticsCase::setWellDataSourceCase( const QString& reservoirDescription )
|
||||
{
|
||||
m_wellDataSourceCase = reservoirDescription;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -85,6 +85,8 @@ public:
|
||||
void setSourceProperties( RiaDefines::ResultCatType propertyType, const std::vector<QString>& propertyNames );
|
||||
void selectAllTimeSteps();
|
||||
|
||||
void setWellDataSourceCase( const QString& reservoirDescription );
|
||||
|
||||
private:
|
||||
void scheduleACTIVEGeometryRegenOnReservoirViews();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user