(#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

@ -44,13 +44,15 @@ RigEclipseWellLogExtractor::RigEclipseWellLogExtractor(const RigCaseData* aCase,
//--------------------------------------------------------------------------------------------------
void RigEclipseWellLogExtractor::calculateIntersection()
{
std::map<RigMDCellIdxEnterLeaveIntersectionSorterKey, HexIntersectionInfo > uniqueIntersections;
{
const std::vector<cvf::Vec3d>& nodeCoords = m_caseData->mainGrid()->nodes();
bool isCellFaceNormalsOut = m_caseData->mainGrid()->isFaceNormalsOutwards();
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)
{
@ -116,6 +118,7 @@ void RigEclipseWellLogExtractor::calculateIntersection()
intersections[intIdx]));
}
}
}
{
// For same MD and same cell, remove enter/leave pairs, as they only touches the wellpath, and should not contribute.