mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
NNC: Added som diagnostics output
This commit is contained in:
@@ -35,6 +35,7 @@ RigNNCData::RigNNCData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
{
|
||||
cvf::Trace::show("NNC: Total number: " + cvf::String((int)m_connections.size()));
|
||||
|
||||
for (size_t cnIdx = 0; cnIdx < m_connections.size(); ++cnIdx)
|
||||
{
|
||||
@@ -79,6 +80,7 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
//m_cellIdxToFaceToConnectionIdxMap[m_connections[cnIdx].m_c1GlobIdx][cvf::StructGridInterface::NO_FACE].push_back(cnIdx);
|
||||
//m_cellIdxToFaceToConnectionIdxMap[m_connections[cnIdx].m_c2GlobIdx][cvf::StructGridInterface::NO_FACE].push_back(cnIdx);
|
||||
|
||||
cvf::Trace::show("NNC: No direct neighbors : C1: " + cvf::String((int)m_connections[cnIdx].m_c1GlobIdx) + "C2: " + cvf::String((int)m_connections[cnIdx].m_c2GlobIdx));
|
||||
continue; // to next connection
|
||||
}
|
||||
}
|
||||
@@ -103,6 +105,8 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
}
|
||||
}
|
||||
|
||||
bool foundAnyOverlap = false;
|
||||
|
||||
for (char fIdx = 0; fIdx < 6; ++fIdx)
|
||||
{
|
||||
if (!isPossibleNeighborInDirection[fIdx])
|
||||
@@ -130,6 +134,7 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
|
||||
if (foundOverlap)
|
||||
{
|
||||
foundAnyOverlap = true;
|
||||
// Found an overlap polygon. Store data about connection
|
||||
|
||||
m_connections[cnIdx].m_c1Face = (cvf::StructGridInterface::FaceType)fIdx;
|
||||
@@ -148,6 +153,11 @@ void RigNNCData::processConnections(const RigMainGrid& mainGrid)
|
||||
break; // The connection face is found. Stop looping over the cell faces. Jump to next connection
|
||||
}
|
||||
}
|
||||
|
||||
if (!foundAnyOverlap)
|
||||
{
|
||||
cvf::Trace::show("NNC: No overlap found for : C1: " + cvf::String((int)m_connections[cnIdx].m_c1GlobIdx) + "C2: " + cvf::String((int)m_connections[cnIdx].m_c2GlobIdx));
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user