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:
committed by
Magne Sjaastad
parent
de4fafe744
commit
ec2a924767
@@ -556,7 +556,7 @@ void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo )
|
||||
}
|
||||
}
|
||||
|
||||
this->nncData()->computeCompleteSetOfNncs( this );
|
||||
this->nncData()->computeCompleteSetOfNncs( this, activeCellInfo );
|
||||
|
||||
distributeNNCsToFaults();
|
||||
}
|
||||
@@ -566,7 +566,7 @@ void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigMainGrid::distributeNNCsToFaults()
|
||||
{
|
||||
const std::vector<RigConnection>& nncs = this->nncData()->connections();
|
||||
const RigConnectionContainer& nncs = this->nncData()->connections();
|
||||
for ( size_t nncIdx = 0; nncIdx < nncs.size(); ++nncIdx )
|
||||
{
|
||||
// Find the fault for each side of the nnc
|
||||
|
||||
Reference in New Issue
Block a user