mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed assert regarding wrong clamping of current timestep
p4#: 20802
This commit is contained in:
@@ -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