From 06164936fedbe0bcbdefa74ffe246177a790518e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 1 Feb 2024 10:52:07 +0100 Subject: [PATCH] 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 51517177435fd0d7cf2d9fd60bb7b1c3e7517cee --- .../ProjectDataModel/RimEclipseCase.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp b/ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp index 2dcd7ecd79..1b8054727d 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp @@ -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 );