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:
Magne Sjaastad committed 2025-07-20 18:39:28 +02:00
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 );