From b61d58211210ccc49c103d643e7c5edce3211080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Thu, 28 Aug 2014 11:35:32 +0200 Subject: [PATCH] Completed the CDARCHY constant table --- .../ProjectDataModel/RimReservoirCellResultsStorage.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp index 2a349a63cb..aefe900f98 100644 --- a/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp +++ b/ApplicationCode/ProjectDataModel/RimReservoirCellResultsStorage.cpp @@ -1498,10 +1498,19 @@ double RimReservoirCellResultsStorage::darchysValue() { darchy = 0.001127; } + else if (unitsType == RigCaseData::UNITS_METRIC) + { + darchy = 0.008527; + } else if (unitsType == RigCaseData::UNITS_LAB) { darchy = 3.6; } + else + { + darchy = 0.00864; // Assuming (PVT - M) + CVF_TIGHT_ASSERT(false); // The enum and doc does not state that the PVT-M actually exists, so to trap this in debug + } } return darchy;