mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
GeoMechView: Fix crash when case is missing.
This commit is contained in:
parent
8930b5b32d
commit
e7eb460737
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user