mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Fixed assert regarding wrong clamping of current timestep
p4#: 20802
This commit is contained in:
1 parent
86696d85e5
commit
705bb185e0
1 file changed
+1
-1
@@ -274,7 +274,7 @@ void RimReservoirView::clampCurrentTimestep()
|
||||
// Clamp the current timestep to actual possibilities
|
||||
if (this->gridCellResults())
|
||||
{
|
||||
if (m_currentTimeStep() > static_cast<int>(this->gridCellResults()->maxTimeStepCount()))
|
||||
if (m_currentTimeStep() >= static_cast<int>(this->gridCellResults()->maxTimeStepCount()))
|
||||
{
|
||||
m_currentTimeStep = static_cast<int>(this->gridCellResults()->maxTimeStepCount()) -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user