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() );
|
reader->open( "", reservoir.p() );
|
||||||
|
|
||||||
setReservoirData( reservoir.p() );
|
setReservoirData( reservoir.p() );
|
||||||
|
computeCachedData();
|
||||||
|
|
||||||
return reader.p();
|
return reader.p();
|
||||||
}
|
}
|
||||||
@ -93,12 +94,7 @@ bool RimRegularGridCase::openEclipseGridFile()
|
|||||||
{
|
{
|
||||||
if ( eclipseCaseData() ) return true;
|
if ( eclipseCaseData() ) return true;
|
||||||
|
|
||||||
auto readerInterface = createModel( "" );
|
createModel( "" );
|
||||||
|
|
||||||
results( RiaDefines::PorosityModelType::MATRIX_MODEL )->setReaderInterface( readerInterface.p() );
|
|
||||||
results( RiaDefines::PorosityModelType::FRACTURE_MODEL )->setReaderInterface( readerInterface.p() );
|
|
||||||
|
|
||||||
computeCachedData();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user