mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
#13081 Python: add grid_property_for_positions for RoffCase too.
Fixes #13081.
This commit is contained in:
1 parent
e490d9ef87
commit
3c653b5880
2 files changed
+4
-2
No files matched your search
@@ -144,7 +144,9 @@ std::expected<caf::PdmObjectHandle*, QString> RimcEclipseCase_exportValuesIntern
|
||||
return std::unexpected( "Result property not found." );
|
||||
}
|
||||
|
||||
if ( m_timeStep < 0 || m_timeStep >= static_cast<int>( eclipseCase->timeStepDates().size() ) )
|
||||
// Num timesteps can be zero for roff cases.
|
||||
int numTimesteps = static_cast<int>( eclipseCase->timeStepDates().size() );
|
||||
if ( m_timeStep < 0 || ( m_timeStep >= numTimesteps && numTimesteps != 0 ) )
|
||||
{
|
||||
return std::unexpected( "Invalid time step." );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user