mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
OpenMP: Use default AABB tree construction for one cell per BB
Do not use buildCellSearchTreeOptimized() when when cellCountPerBB is 1, as the performance in this case is best using buildCellSearchTree()
This commit is contained in:
parent
8f33caef74
commit
de29b3b0ed
@ -272,7 +272,14 @@ void RigMainGrid::computeCachedData( std::string* aabbTreeInfo )
|
||||
const double factor = std::ceil( cellCount() / maxNumberOfLeafNodes );
|
||||
const size_t cellsPerBoundingBox = std::max( size_t( 1 ), static_cast<size_t>( factor ) );
|
||||
|
||||
buildCellSearchTreeOptimized( cellsPerBoundingBox );
|
||||
if ( cellsPerBoundingBox > 1 )
|
||||
{
|
||||
buildCellSearchTreeOptimized( cellsPerBoundingBox );
|
||||
}
|
||||
else
|
||||
{
|
||||
buildCellSearchTree();
|
||||
}
|
||||
|
||||
if ( aabbTreeInfo )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user