Skip to content

Commit

Permalink
Fix computation of bounding box main grid
Browse files Browse the repository at this point in the history
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 5151717
  • Loading branch information
magnesj committed Feb 1, 2024
1 parent 661840f commit 0616493
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ApplicationLibCode/ProjectDataModel/RimEclipseCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 );

Expand Down

0 comments on commit 0616493

Please sign in to comment.