mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
Add well target generator cases to RimProject::allCases.
This commit is contained in:
parent
d1aec2f1cb
commit
1d552ea77d
@ -116,6 +116,14 @@ std::vector<RimEclipseCase*> RimEclipseCaseEnsemble::cases() const
|
||||
return m_caseCollection->reservoirs.childrenByType();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellTargetCandidatesGenerator*> RimEclipseCaseEnsemble::wellTargetsGenerators() const
|
||||
{
|
||||
return m_wellTargetGenerators.childrenByType();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -56,7 +56,8 @@ public:
|
||||
|
||||
RimEclipseViewCollection* viewCollection() const;
|
||||
|
||||
void addWellTargetsGenerator( RimWellTargetCandidatesGenerator* generator );
|
||||
void addWellTargetsGenerator( RimWellTargetCandidatesGenerator* generator );
|
||||
std::vector<RimWellTargetCandidatesGenerator*> wellTargetsGenerators() const;
|
||||
|
||||
void addStatisticsContourMap( RimStatisticsContourMap* statisticsContourMap );
|
||||
|
||||
|
@ -102,6 +102,7 @@
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "RimWellTargetCandidatesGenerator.h"
|
||||
#include "VerticalFlowPerformance/RimVfpDataCollection.h"
|
||||
#include "VerticalFlowPerformance/RimVfpPlotCollection.h"
|
||||
|
||||
@ -605,6 +606,11 @@ std::vector<RimCase*> RimProject::allGridCases() const
|
||||
{
|
||||
cases.push_back( acase );
|
||||
}
|
||||
|
||||
for ( RimWellTargetCandidatesGenerator* generator : ensemble->wellTargetsGenerators() )
|
||||
{
|
||||
if ( auto ensembleStatisticsCase = generator->ensembleStatisticsCase() ) cases.push_back( ensembleStatisticsCase );
|
||||
}
|
||||
}
|
||||
|
||||
RimGeoMechModels* geomModels = oilField->geoMechModels();
|
||||
|
@ -423,3 +423,11 @@ void RimWellTargetCandidatesGenerator::updateResultDefinition()
|
||||
RimEclipseCase* eclipseCase = firstCase();
|
||||
if ( eclipseCase ) m_resultDefinition->setEclipseCase( eclipseCase );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEclipseCase* RimWellTargetCandidatesGenerator::ensembleStatisticsCase() const
|
||||
{
|
||||
return m_ensembleStatisticsCase;
|
||||
}
|
||||
|
@ -42,6 +42,8 @@ public:
|
||||
|
||||
void updateResultDefinition();
|
||||
|
||||
RimEclipseCase* ensembleStatisticsCase() const;
|
||||
|
||||
protected:
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
||||
|
Loading…
Reference in New Issue
Block a user