mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5914 Import faults : Avoid computation of faults if turned off in preferences
This commit is contained in:
@@ -569,6 +569,8 @@ void RigMainGrid::calculateFaults( const RigActiveCellInfo* activeCellInfo, bool
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigMainGrid::distributeNNCsToFaults()
|
||||
{
|
||||
if ( m_faultsPrCellAcc.isNull() ) return;
|
||||
|
||||
const RigConnectionContainer& nncs = this->nncData()->connections();
|
||||
for ( size_t nncIdx = 0; nncIdx < nncs.size(); ++nncIdx )
|
||||
{
|
||||
@@ -655,7 +657,7 @@ bool RigMainGrid::isFaceNormalsOutwards() const
|
||||
const RigFault* RigMainGrid::findFaultFromCellIndexAndCellFace( size_t reservoirCellIndex,
|
||||
cvf::StructGridInterface::FaceType face ) const
|
||||
{
|
||||
CVF_TIGHT_ASSERT( m_faultsPrCellAcc.notNull() );
|
||||
if ( m_faultsPrCellAcc.isNull() ) return nullptr;
|
||||
|
||||
if ( face == cvf::StructGridInterface::NO_FACE ) return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user