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:
@@ -723,8 +723,8 @@ void RifReaderEclipseOutput::transferStaticNNCData( const ecl_grid_type* mainEcl
|
||||
if ( numNNC > 0 )
|
||||
{
|
||||
// Transform to our own data structures
|
||||
std::vector<RigConnection> nncConnections;
|
||||
std::vector<double> transmissibilityValuesTemp;
|
||||
RigConnectionContainer nncConnections;
|
||||
std::vector<double> transmissibilityValuesTemp;
|
||||
|
||||
const double* transValues = ecl_nnc_data_get_values( tran_data );
|
||||
|
||||
@@ -1289,7 +1289,7 @@ size_t localGridCellIndexFromErtConnection( const RigGridBase* grid,
|
||||
cellK = 0;
|
||||
}
|
||||
|
||||
// Introduced based on discussion with H<>kon H<>gst<73>l 08.09.2016
|
||||
// Introduced based on discussion with H<>kon H<>gst<73>l 08.09.2016
|
||||
if ( cellK >= static_cast<int>( grid->cellCountK() ) )
|
||||
{
|
||||
int maxCellK = static_cast<int>( grid->cellCountK() );
|
||||
|
||||
Reference in New Issue
Block a user