From 89c67df963904209ebd0eb66be4ca705bad1bbda Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 12 Aug 2013 17:04:31 +0200 Subject: [PATCH] Fixed issue with missing well pipe geometry p4#: 22151 --- .../SocketInterface/RiaPropertyDataCommands.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp b/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp index b446a9ef56..7503c59d65 100644 --- a/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp +++ b/ApplicationCode/SocketInterface/RiaPropertyDataCommands.cpp @@ -317,7 +317,12 @@ public: for (size_t cellIdx = 0; static_cast(cellIdx) < rigGrid->cellCount(); cellIdx++) { - values[cellIdx] = cellCenterDataAccessObject->cellScalar(cellIdx); + double cellValue = cellCenterDataAccessObject->cellScalar(cellIdx); + if (cellValue == HUGE_VAL) + { + cellValue = 0.0; + } + values[cellIdx] = cellValue; } }