mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix computation of bounding box main grid
Calculation of the bounding box for main grid used to be on demand. This was changed in a previous commit. The computation of bounding box is now done first.
The regression was introduced in 5151717743
This commit is contained in:
@@ -625,11 +625,9 @@ void RimEclipseCase::computeCachedData()
|
||||
caf::ProgressInfo pInf( 30, "" );
|
||||
|
||||
{
|
||||
auto task = pInf.task( "", 1 );
|
||||
computeActiveCellsBoundingBox();
|
||||
}
|
||||
// NB! Call computeCachedData() first, as this function also computes the bounding box used in other functions, specifically
|
||||
// computeActiveCellsBoundingBox()
|
||||
|
||||
{
|
||||
auto task = pInf.task( "Calculating Cell Search Tree", 10 );
|
||||
|
||||
std::string aabbTreeInfo;
|
||||
@@ -639,6 +637,11 @@ void RimEclipseCase::computeCachedData()
|
||||
// RiaLogging::debug( QString::fromStdString( aabbTreeInfo ) );
|
||||
}
|
||||
|
||||
{
|
||||
auto task = pInf.task( "", 1 );
|
||||
computeActiveCellsBoundingBox();
|
||||
}
|
||||
|
||||
{
|
||||
auto task = pInf.task( "Calculating faults", 17 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user