#5197 Export MSW : Set minimum segment length to 1.0e-3

This commit is contained in:
Magne Sjaastad
2019-12-06 12:10:34 +01:00
parent 955d07f9ce
commit 3babbe675a

View File

@@ -1179,9 +1179,16 @@ RicWellPathExportMswCompletionsImpl::MainBoreSegments
{
MainBoreSegments mainBoreSegments;
// Intersections along the well path with grid geometry is handled by well log extraction tools. The threshold in
// RigWellLogExtractionTools::isEqualDepth is currently set to 0.1m, and this is a pretty large threshold based on
// the indicated threshold of 0.001m for MSW segments
const double segmentLengthThreshold = 1.0e-3;
for ( const auto& cellIntInfo : subSegIntersections )
{
if ( std::fabs( cellIntInfo.endMD - cellIntInfo.startMD ) > 1.0e-8 )
const double segmentLength = std::fabs( cellIntInfo.endMD - cellIntInfo.startMD );
if ( segmentLength > segmentLengthThreshold )
{
QString label = QString( "Main stem segment %1" ).arg( mainBoreSegments.size() + 2 );
std::shared_ptr<RicMswSegment> segment( new RicMswSegment( label,
@@ -1213,6 +1220,13 @@ RicWellPathExportMswCompletionsImpl::MainBoreSegments
}
mainBoreSegments.push_back( segment );
}
else
{
QString text = QString( "Skipping segment , threshold = %1, length = %2" )
.arg( segmentLengthThreshold )
.arg( segmentLength );
RiaLogging::info( text );
}
}
return mainBoreSegments;
}