From c8f682b2059425327648970a20cf935f5cf34b6a Mon Sep 17 00:00:00 2001 From: astridkbjorke Date: Mon, 6 Feb 2017 15:23:51 +0100 Subject: [PATCH] #1140 - pre-proto - Update calculation of dx, dy, dz if not read from file --- .../ProjectDataModel/RimReservoirCellResultsStorage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp index 753a3c531b..c073933d8c 100644 --- a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp +++ b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp @@ -649,19 +649,19 @@ void RimReservoirCellResultsStorage::computeDepthRelatedResults() if (computeDx) { cvf::Vec3d cellWidth = cell.faceCenter(cvf::StructGridInterface::NEG_I) - cell.faceCenter(cvf::StructGridInterface::POS_I); - dx[0][cellIdx] = cvf::Math::abs(cellWidth.x()); + dx[0][cellIdx] = cellWidth.length(); } if (computeDy) { cvf::Vec3d cellWidth = cell.faceCenter(cvf::StructGridInterface::NEG_J) - cell.faceCenter(cvf::StructGridInterface::POS_J); - dy[0][cellIdx] = cvf::Math::abs(cellWidth.y()); + dy[0][cellIdx] = cellWidth.length(); } if (computeDz) { cvf::Vec3d cellWidth = cell.faceCenter(cvf::StructGridInterface::NEG_K) - cell.faceCenter(cvf::StructGridInterface::POS_K); - dz[0][cellIdx] = cvf::Math::abs(cellWidth.z()); + dz[0][cellIdx] = cellWidth.length(); } if (computeTops)