Fixed bug in riGetPropertyData only returning values for the first time step

https://github.com/OPM/ResInsight/issues/56
p4#: 22379
This commit is contained in:
Magne Sjaastad 2013-09-11 10:26:53 +02:00
parent f8f51bbe92
commit f928ef87e8

View File

@ -315,14 +315,14 @@ public:
continue;
}
for (size_t cellIdx = 0; static_cast<size_t>(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;
}
}