mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Regression Test: Make sure the grid is opened when reading time steps
No grid case curves was seen for ProjectFilesSmallTests\TestCase_RFT_PLT\RegressionTest.rsp
This commit is contained in:
1 parent
54fdf026f4
commit
63fcc8a29f
3 files changed
+21
-6
No files matched your search
@@ -579,6 +579,12 @@ std::vector<RimPressureDepthData*> pressureDepthData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<QDateTime, std::set<RifDataSourceForRftPlt>> timeStepsMapFromGridCase( RimEclipseCase* gridCase )
|
||||
{
|
||||
if ( !gridCase ) return {};
|
||||
|
||||
// Make sure the grid model is opened. This is required to read out time step dates. If no 3D views are present, the grid model is not
|
||||
// yet opened.
|
||||
gridCase->openEclipseGridFile();
|
||||
|
||||
const RigEclipseCaseData* const eclipseCaseData = gridCase->eclipseCaseData();
|
||||
std::pair<RigEclipseResultAddress, QString> resultDataInfo = pressureResultDataInfo( eclipseCaseData );
|
||||
|
||||
|
||||
Reference in new issue
Block a user