#6734 Fix segment order in MSW export and get well in error message

* Fixing the order also ends up removing the wrong segment discussed in the bug
This commit is contained in:
Gaute Lindkvist
2020-10-12 09:56:38 +02:00
parent 50a7052756
commit bb3dfd538c
10 changed files with 51 additions and 10 deletions

View File

@@ -35,6 +35,7 @@
//--------------------------------------------------------------------------------------------------
std::vector<WellPathCellIntersectionInfo>
RigWellPathIntersectionTools::findCellIntersectionInfosAlongPath( const RigEclipseCaseData* caseData,
const QString& wellPathName,
const std::vector<cvf::Vec3d>& pathCoords,
const std::vector<double>& pathMds )
{
@@ -46,10 +47,10 @@ std::vector<WellPathCellIntersectionInfo>
dummyWellPath->m_wellPathPoints = pathCoords;
dummyWellPath->m_measuredDepths = pathMds;
std::string errorIdName = ( wellPathName + " " + caseData->ownerCase()->caseUserDescription() ).toStdString();
cvf::ref<RigEclipseWellLogExtractor> extractor =
new RigEclipseWellLogExtractor( caseData,
dummyWellPath.p(),
caseData->ownerCase()->caseUserDescription().toStdString() );
new RigEclipseWellLogExtractor( caseData, dummyWellPath.p(), errorIdName );
return extractor->cellIntersectionInfosAlongWellPath();
}