Improved statistical data infrastructure

p4#: 20694
This commit is contained in:
Magne Sjaastad
2013-03-02 15:32:38 +01:00
parent 42f3f0b2d2
commit 4c955ece4a
7 changed files with 145 additions and 21 deletions

View File

@@ -274,7 +274,7 @@ void RimReservoirView::clampCurrentTimestep()
// Clamp the current timestep to actual possibilities
if (this->gridCellResults())
{
if (m_currentTimeStep() > this->gridCellResults()->maxTimeStepCount())
if (m_currentTimeStep() > static_cast<int>(this->gridCellResults()->maxTimeStepCount()))
{
m_currentTimeStep = static_cast<int>(this->gridCellResults()->maxTimeStepCount()) -1;
}