Apply correct frame indices for OBG0 and SH_MK WBS curve calculation

This commit is contained in:
Gaute Lindkvist
2019-12-04 11:31:44 +01:00
parent df5c5fb2a8
commit 2e7d581c3e
3 changed files with 8 additions and 6 deletions

View File

@@ -156,6 +156,10 @@ void RigGeoMechWellLogExtractor::curveData( const RigFemResultAddress& resAddr,
RigWbsParameter param;
if ( RigWbsParameter::findParameter( QString::fromStdString( resAddr.fieldName ), &param ) )
{
if ( param == RigWbsParameter::OBG0() )
{
frameIndex = 0;
}
calculateWbsParameterForAllSegments( param, frameIndex, values );
if ( param == RigWbsParameter::UCS() ) // UCS is reported as UCS/100
{
@@ -652,9 +656,9 @@ void RigGeoMechWellLogExtractor::wellBoreSH_MatthewsKelly( int frameIndex, std::
curveData( ppAddr, frameIndex, &PP );
curveData( ppAddr, 0, &PP0 );
calculateWbsParameterForAllSegments( RigWbsParameter::K0_SH(), 0, &K0_SH );
calculateWbsParameterForAllSegments( RigWbsParameter::K0_SH(), frameIndex, &K0_SH );
calculateWbsParameterForAllSegments( RigWbsParameter::OBG0(), 0, &OBG0 );
calculateWbsParameterForAllSegments( RigWbsParameter::DF(), 0, &DF );
calculateWbsParameterForAllSegments( RigWbsParameter::DF(), frameIndex, &DF );
values->resize( m_intersections.size(), std::numeric_limits<double>::infinity() );