mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7453 StimPlanModel: Add pressure date to pressure table.
Also start using it in header and plot.
This commit is contained in:
committed by
Magne Sjaastad
parent
f051f009bc
commit
c1ff038642
@@ -47,6 +47,7 @@
|
||||
#include "RimNonNetLayers.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimPolylineTarget.h"
|
||||
#include "RimPressureTable.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimStimPlanModelCalculator.h"
|
||||
#include "RimStimPlanModelPlot.h"
|
||||
@@ -1699,3 +1700,18 @@ bool RimStimPlanModel::isScaledByNetToGross( RiaDefines::CurveProperty curveProp
|
||||
|
||||
return std::find( matching.begin(), matching.end(), curveProperty ) != matching.end();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimStimPlanModel::pressureDate() const
|
||||
{
|
||||
if ( !m_stimPlanModelTemplate ) return QString();
|
||||
|
||||
if ( m_stimPlanModelTemplate->usePressureTableForProperty( RiaDefines::CurveProperty::PRESSURE ) )
|
||||
return m_stimPlanModelTemplate->pressureTable()->pressureDate();
|
||||
else if ( m_eclipseCase && m_timeStep >= 0 && m_timeStep < m_eclipseCase->timeStepStrings().size() )
|
||||
return m_eclipseCase->timeStepStrings()[m_timeStep];
|
||||
else
|
||||
return QString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user