mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5915 improve performance of NNC computation and limit to active cells
This commit is contained in:
@@ -69,8 +69,10 @@ public:
|
||||
|
||||
socketStream << (quint64)connectionCount;
|
||||
|
||||
for ( const RigConnection& connection : mainGrid->nncData()->connections() )
|
||||
for ( size_t i = 0; i < mainGrid->nncData()->connections().size(); ++i )
|
||||
{
|
||||
RigConnection connection = mainGrid->nncData()->connections()[i];
|
||||
|
||||
const RigCell& cell1 = mainGrid->globalCellArray()[connection.m_c1GlobIdx];
|
||||
const RigCell& cell2 = mainGrid->globalCellArray()[connection.m_c2GlobIdx];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user