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:
Magne Sjaastad
2024-02-01 10:52:07 +01:00
parent 661840f425
commit d661ed4758

View File

@@ -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 );