Skip to content

Commit

Permalink
Make sure cached data is computed
Browse files Browse the repository at this point in the history
Without this, the bounding box of the case is undefined, causing the polygons lines not to be visible.
  • Loading branch information
magnesj authored and kriben committed Dec 23, 2024
1 parent 1d552ea commit 1cdbffb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ cvf::ref<RifReaderInterface> RimRegularGridCase::createModel( QString modelName
reader->open( "", reservoir.p() );

setReservoirData( reservoir.p() );
computeCachedData();

return reader.p();
}
Expand All @@ -93,12 +94,7 @@ bool RimRegularGridCase::openEclipseGridFile()
{
if ( eclipseCaseData() ) return true;

auto readerInterface = createModel( "" );

results( RiaDefines::PorosityModelType::MATRIX_MODEL )->setReaderInterface( readerInterface.p() );
results( RiaDefines::PorosityModelType::FRACTURE_MODEL )->setReaderInterface( readerInterface.p() );

computeCachedData();
createModel( "" );

return true;
}

0 comments on commit 1cdbffb

Please sign in to comment.