mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
GeoMechView: Fix crash when case is missing.
This commit is contained in:
1 parent
8930b5b32d
commit
e7eb460737
1 file changed
+4
@@ -801,6 +801,10 @@ void RimGeoMechView::onClampCurrentTimestep()
|
||||
{
|
||||
maxSteps = m_geomechCase->geoMechData()->femPartResults()->totalSteps();
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
if ( m_currentTimeStep >= maxSteps ) m_currentTimeStep = maxSteps - 1;
|
||||
if ( m_currentTimeStep < 0 ) m_currentTimeStep = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user