(#557, #560, #561) WLP: Added scoping to make ready for a separate function

This commit is contained in:
Jacob Støren 2015-10-14 08:14:31 +02:00
parent 6014312056
commit fdaa25a286

View File

@ -43,6 +43,9 @@ RigEclipseWellLogExtractor::RigEclipseWellLogExtractor(const RigCaseData* aCase,
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RigEclipseWellLogExtractor::calculateIntersection() void RigEclipseWellLogExtractor::calculateIntersection()
{
std::map<RigMDCellIdxEnterLeaveIntersectionSorterKey, HexIntersectionInfo > uniqueIntersections;
{ {
const std::vector<cvf::Vec3d>& nodeCoords = m_caseData->mainGrid()->nodes(); const std::vector<cvf::Vec3d>& nodeCoords = m_caseData->mainGrid()->nodes();
@ -50,7 +53,6 @@ void RigEclipseWellLogExtractor::calculateIntersection()
if (!m_wellPath->m_wellPathPoints.size()) return ; if (!m_wellPath->m_wellPathPoints.size()) return ;
std::map<RigMDCellIdxEnterLeaveIntersectionSorterKey, HexIntersectionInfo > uniqueIntersections;
for (size_t wpp = 0; wpp < m_wellPath->m_wellPathPoints.size() - 1; ++wpp) for (size_t wpp = 0; wpp < m_wellPath->m_wellPathPoints.size() - 1; ++wpp)
{ {
@ -116,6 +118,7 @@ void RigEclipseWellLogExtractor::calculateIntersection()
intersections[intIdx])); intersections[intIdx]));
} }
} }
}
{ {
// For same MD and same cell, remove enter/leave pairs, as they only touches the wellpath, and should not contribute. // For same MD and same cell, remove enter/leave pairs, as they only touches the wellpath, and should not contribute.