mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Crash fix, do not assert, return empty list
This commit is contained in:
@@ -832,9 +832,11 @@ const RigFault* RigMainGrid::findFaultFromCellIndexAndCellFace( size_t reservoir
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<size_t> RigMainGrid::findIntersectingCells( const cvf::BoundingBox& inputBB ) const
|
||||
{
|
||||
CVF_ASSERT( m_cellSearchTree.notNull() );
|
||||
std::vector<size_t> cellIndices;
|
||||
m_cellSearchTree->findIntersections( inputBB, &cellIndices );
|
||||
if ( m_cellSearchTree.notNull() )
|
||||
{
|
||||
m_cellSearchTree->findIntersections( inputBB, &cellIndices );
|
||||
}
|
||||
return cellIndices;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user