mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve NNC memory use
This commit is contained in:
committed by
Magne Sjaastad
parent
97dd891d38
commit
ab0b05b31c
@@ -734,9 +734,8 @@ void RifReaderEclipseOutput::transferStaticNNCData( const ecl_grid_type* mainEcl
|
||||
RigGridBase* grid1 = mainGrid->gridByIndex( geometry_pair->grid_nr1 );
|
||||
RigGridBase* grid2 = mainGrid->gridByIndex( geometry_pair->grid_nr2 );
|
||||
|
||||
RigConnection nncConnection;
|
||||
nncConnection.m_c1GlobIdx = grid1->reservoirCellIndex( geometry_pair->global_index1 );
|
||||
nncConnection.m_c2GlobIdx = grid2->reservoirCellIndex( geometry_pair->global_index2 );
|
||||
RigConnection nncConnection( grid1->reservoirCellIndex( geometry_pair->global_index1 ),
|
||||
grid2->reservoirCellIndex( geometry_pair->global_index2 ) );
|
||||
|
||||
nncConnections.push_back( nncConnection );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user