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