From f928ef87e83d70b2d0f798ff124257f41e21a6cd Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 11 Sep 2013 10:26:53 +0200 Subject: [PATCH] Fixed bug in riGetPropertyData only returning values for the first time step https://github.com/OPM/ResInsight/issues/56 p4#: 22379 --- ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp b/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp index 782d43d97a..c488f3ac48 100644 --- a/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp +++ b/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp @@ -315,14 +315,14 @@ public: continue; } - for (size_t cellIdx = 0; static_cast(cellIdx) < rigGrid->cellCount(); cellIdx++) + for (size_t cellIdx = 0; cellIdx < rigGrid->cellCount(); cellIdx++) { double cellValue = cellCenterDataAccessObject->cellScalar(cellIdx); if (cellValue == HUGE_VAL) { cellValue = 0.0; } - values[cellIdx] = cellValue; + values[valueIdx++] = cellValue; } }