mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
MSW : Fix length for the WELSWGS incremental depth
This commit is contained in:
parent
8749deb76a
commit
0097e9dfb2
@ -818,6 +818,14 @@ void RicMswTableFormatterTools::writeWelsegsSegment( RicMswSegment*
|
|||||||
double midPointMD = 0.5 * ( subStartMD + subEndMD );
|
double midPointMD = 0.5 * ( subStartMD + subEndMD );
|
||||||
double midPointTVD = tvdFromMeasuredDepth( branch->wellPath(), midPointMD );
|
double midPointTVD = tvdFromMeasuredDepth( branch->wellPath(), midPointMD );
|
||||||
|
|
||||||
|
if ( midPointMD < prevOutMD )
|
||||||
|
{
|
||||||
|
// The first segment of parent branch may sometimes have a MD that is larger than the first segment on the
|
||||||
|
// lateral. If this is the case, use the startMD of the branch instead
|
||||||
|
prevOutMD = branch->startMD();
|
||||||
|
prevOutTVD = branch->startTVD();
|
||||||
|
}
|
||||||
|
|
||||||
if ( exportInfo.lengthAndDepthText() == QString( "INC" ) )
|
if ( exportInfo.lengthAndDepthText() == QString( "INC" ) )
|
||||||
{
|
{
|
||||||
depth = midPointTVD - prevOutTVD;
|
depth = midPointTVD - prevOutTVD;
|
||||||
@ -844,7 +852,10 @@ void RicMswTableFormatterTools::writeWelsegsSegment( RicMswSegment*
|
|||||||
formatter.add( roughnessFactor );
|
formatter.add( roughnessFactor );
|
||||||
formatter.rowCompleted();
|
formatter.rowCompleted();
|
||||||
( *segmentNumber )++;
|
( *segmentNumber )++;
|
||||||
|
|
||||||
outletSegment = segment;
|
outletSegment = segment;
|
||||||
|
prevOutMD = outletSegment->outputMD();
|
||||||
|
prevOutTVD = outletSegment->outputTVD();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user