mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8375 NNC : Create NNC generators when NNC data is available
This approach fixes an NNC visibility issue related to use of m_rimFault->faultGeometry()->connectionIndices() before any was assigned in RigMainGrid::distributeNNCsToFaults()
This commit is contained in:
@@ -79,12 +79,6 @@ void RigActiveCellInfo::setCellResultIndex( size_t reservoirCellIndex, size_t re
|
||||
CVF_TIGHT_ASSERT( reservoirCellResultIndex < m_cellIndexToResultIndex.size() );
|
||||
|
||||
m_cellIndexToResultIndex[reservoirCellIndex] = reservoirCellResultIndex;
|
||||
|
||||
// if ( reservoirCellResultIndex >= m_reservoirActiveCellCount )
|
||||
// {
|
||||
//#pragma omp critical
|
||||
// m_reservoirActiveCellCount = reservoirCellResultIndex + 1;
|
||||
// }
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -265,7 +265,7 @@ size_t RigNNCData::eclipseConnectionCount() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const RigConnectionContainer& RigNNCData::eclipseConnections() const
|
||||
const RigConnectionContainer& RigNNCData::availableConnections() const
|
||||
{
|
||||
// Return connections without calling ensureConnectionDataIsProcessed() to avoid potential heavy computations
|
||||
// Relevant if only native connection data is required
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
void setEclipseConnections( RigConnectionContainer& eclipseConnections );
|
||||
void buildPolygonsForEclipseConnections();
|
||||
size_t eclipseConnectionCount() const;
|
||||
const RigConnectionContainer& eclipseConnections() const;
|
||||
const RigConnectionContainer& availableConnections() const;
|
||||
|
||||
bool ensureAllConnectionDataIsProcessed();
|
||||
RigConnectionContainer& allConnections();
|
||||
|
||||
Reference in New Issue
Block a user