mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1520 Establish new result type 'Completion Type'
This commit is contained in:
@@ -626,6 +626,17 @@ RimOilField* RimProject::activeOilField()
|
||||
return oilFields[0];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Currently there will be only one oil field in Resinsight, so return hardcoded first oil field
|
||||
/// from the RimOilField collection.
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const RimOilField * RimProject::activeOilField() const
|
||||
{
|
||||
CVF_ASSERT(oilFields.size() == 1);
|
||||
|
||||
return oilFields[0];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -752,6 +763,17 @@ bool RimProject::showPlotWindow() const
|
||||
return m_showPlotWindow;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimProject::removeResult(RimDefines::ResultCatType type, const QString & resultName)
|
||||
{
|
||||
for (RimEclipseCase* eclipseCase : activeOilField()->analysisModels->cases)
|
||||
{
|
||||
eclipseCase->removeResult(type, resultName);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user