#5913 Import NNC : Do not compute NNCs if importNNCs is disabled in preferences

This commit is contained in:
Magne Sjaastad
2020-05-13 12:35:03 +02:00
parent 87f1535888
commit 2bc9cb37c0
5 changed files with 29 additions and 7 deletions

View File

@@ -413,7 +413,7 @@ bool RigMainGrid::hasFaultWithName( const QString& name ) const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo )
void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo, bool computeNncs )
{
if ( hasFaultWithName( RiaDefines::undefinedGridFaultName() ) &&
hasFaultWithName( RiaDefines::undefinedGridFaultWithInactiveName() ) )
@@ -556,7 +556,10 @@ void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo )
}
}
this->nncData()->computeCompleteSetOfNncs( this, activeCellInfo );
if ( computeNncs )
{
this->nncData()->computeCompleteSetOfNncs( this, activeCellInfo );
}
distributeNNCsToFaults();
}