mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5197 Export MSW : Set minimum segment length to 1.0e-3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user