#3183 Fix errors in regular fishbones completion output for LGR grids following MSW fracture work.

This commit is contained in:
Gaute Lindkvist
2018-08-14 14:56:15 +02:00
parent 1d4fef5a8b
commit 3f6185ae3d
4 changed files with 8 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
wellBorePart.intersectionWithWellMeasuredDepth = location.measuredDepth(); wellBorePart.intersectionWithWellMeasuredDepth = location.measuredDepth();
wellBorePart.lateralIndex = lateral.lateralIndex(); wellBorePart.lateralIndex = lateral.lateralIndex();
wellBorePartsInCells[intersection.gridLocalCellIndex()].push_back(wellBorePart); wellBorePartsInCells[intersection.globalCellIndex()].push_back(wellBorePart);
} }
} }

View File

@@ -18,7 +18,7 @@ RicWellSegmentLateralIntersection::RicWellSegmentLateralIntersection(const QStri
double deltaTVD, double deltaTVD,
const cvf::Vec3d& lengthsInCell) const cvf::Vec3d& lengthsInCell)
: m_gridName(gridName) : m_gridName(gridName)
, m_gridLocalCellIndex(gridLocalCellIndex) , m_globalCellIndex(gridLocalCellIndex)
, m_gridLocalCellIJK(gridLocalCellIJK) , m_gridLocalCellIJK(gridLocalCellIJK)
, m_startMD(startMD) , m_startMD(startMD)
, m_deltaMD(deltaMD) , m_deltaMD(deltaMD)
@@ -42,9 +42,9 @@ const QString& RicWellSegmentLateralIntersection::gridName() const
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
size_t RicWellSegmentLateralIntersection::gridLocalCellIndex() const size_t RicWellSegmentLateralIntersection::globalCellIndex() const
{ {
return m_gridLocalCellIndex; return m_globalCellIndex;
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -35,7 +35,7 @@ class RicWellSegmentLateralIntersection
{ {
public: public:
RicWellSegmentLateralIntersection(const QString& gridName, // Pass in empty string for main grid RicWellSegmentLateralIntersection(const QString& gridName, // Pass in empty string for main grid
size_t gridLocalCellIndex, size_t globalCellIndex,
const cvf::Vec3st& gridLocalCellIJK, const cvf::Vec3st& gridLocalCellIJK,
double startMD, double startMD,
double deltaMD, double deltaMD,
@@ -44,7 +44,7 @@ public:
const cvf::Vec3d& lengthsInCell); const cvf::Vec3d& lengthsInCell);
const QString& gridName() const; const QString& gridName() const;
size_t gridLocalCellIndex() const; size_t globalCellIndex() const;
cvf::Vec3st gridLocalCellIJK() const; cvf::Vec3st gridLocalCellIJK() const;
double startMD() const; double startMD() const;
double deltaMD() const; double deltaMD() const;
@@ -62,7 +62,7 @@ public:
private: private:
QString m_gridName; QString m_gridName;
size_t m_gridLocalCellIndex; size_t m_globalCellIndex;
cvf::Vec3st m_gridLocalCellIJK; cvf::Vec3st m_gridLocalCellIJK;
double m_startMD; double m_startMD;
double m_deltaMD; double m_deltaMD;

View File

@@ -1308,7 +1308,7 @@ void RicWellPathExportCompletionDataFeatureImpl::assignLateralIntersections(cons
localGrid->ijkFromCellIndex(localGridIdx, &i, &j, &k); localGrid->ijkFromCellIndex(localGridIdx, &i, &j, &k);
RicWellSegmentLateralIntersection lateralIntersection(gridName, RicWellSegmentLateralIntersection lateralIntersection(gridName,
localGridIdx, cellIntInfo.globCellIndex,
cvf::Vec3st(i, j, k), cvf::Vec3st(i, j, k),
previousExitMD, previousExitMD,
cellIntInfo.endMD - previousExitMD, cellIntInfo.endMD - previousExitMD,