#6146 RFT plot: Use MD from Wells for Ensembles.

This commit is contained in:
Kristian Bendiksen
2020-09-15 13:21:09 +02:00
committed by Magne Sjaastad
parent 724131d310
commit 411adfd7e6
@@ -1014,15 +1014,14 @@ bool RimWellLogRftCurve::deriveMeasuredDepthValuesFromWellPath( const std::vecto
RimProject* proj = RimProject::current(); RimProject* proj = RimProject::current();
RimWellPath* wellPath = proj->wellPathByName( m_wellName ); RimWellPath* wellPath = proj->wellPathByName( m_wellName );
std::vector<double> derivedMdValues;
if ( wellPath ) if ( wellPath )
{ {
const std::vector<double>& mdValuesOfWellPath = wellPath->wellPathGeometry()->measureDepths(); const std::vector<double>& mdValuesOfWellPath = wellPath->wellPathGeometry()->measureDepths();
std::vector<double> tvdValuesOfWellPath = wellPath->wellPathGeometry()->trueVerticalDepths(); const std::vector<double>& tvdValuesOfWellPath = wellPath->wellPathGeometry()->trueVerticalDepths();
derivedMdValues = derivedMDValues =
RigWellPathGeometryTools::interpolateMdFromTvd( mdValuesOfWellPath, tvdValuesOfWellPath, tvDepthValues ); RigWellPathGeometryTools::interpolateMdFromTvd( mdValuesOfWellPath, tvdValuesOfWellPath, tvDepthValues );
CVF_ASSERT( derivedMdValues.size() == tvDepthValues.size() ); CVF_ASSERT( derivedMDValues.size() == tvDepthValues.size() );
return true; return true;
} }
return false; return false;