(#558) Added support for TVD/MD switch for curve data extracted from geo mech models

This was handled just for Eclipse models.
This commit is contained in:
Pål Hagen 2015-10-12 10:31:17 +02:00
parent 8e03c38901
commit 1132a0db5e

View File

@ -232,8 +232,13 @@ void RimWellLogExtractionCurve::updatePlotData()
}
else if (geomExtractor.notNull()) // geomExtractor
{
const std::vector<double>& depthValues = geomExtractor->measuredDepth();
RimWellLogPlot* wellLogPlot;
firstAnchestorOrThisOfType(wellLogPlot);
CVF_ASSERT(wellLogPlot);
const std::vector<double>& depthValues = wellLogPlot->depthType() == RimWellLogPlot::MEASURED_DEPTH ? geomExtractor->measuredDepth() : geomExtractor->trueVerticalDepth();
m_geomResultDefinition->loadResult();
std::vector<double> values;
geomExtractor->curveData(m_geomResultDefinition->resultAddress(), m_timeStep, &values);