mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure we use the correct timestep index to avoid a crash.
This commit is contained in:
parent
f9fc7cff3a
commit
832bd6c58f
@ -236,7 +236,7 @@ QString RimFaultRAPreprocSettings::startTimeStepGeoMech() const
|
||||
if ( m_geomechCase() )
|
||||
{
|
||||
if ( ( m_startTimestepGeoMech >= 0 ) && ( m_startTimestepGeoMech <= m_geomechCase->timeStepStrings().size() ) )
|
||||
return m_geomechCase->timeStepStrings()[m_startTimestepEclipse];
|
||||
return m_geomechCase->timeStepStrings()[m_startTimestepGeoMech];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user