mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
Make sure cached data is computed
Without this, the bounding box of the case is undefined, causing the polygons lines not to be visible.
This commit is contained in:
parent
1d552ea77d
commit
1cdbffb2c7
@ -82,6 +82,7 @@ cvf::ref<RifReaderInterface> RimRegularGridCase::createModel( QString modelName
|
||||
reader->open( "", reservoir.p() );
|
||||
|
||||
setReservoirData( reservoir.p() );
|
||||
computeCachedData();
|
||||
|
||||
return reader.p();
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user