From bf0dd5d30381f30b0d4e9d5a7a1917a381304d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Tue, 7 Feb 2017 13:47:00 +0100 Subject: [PATCH] #1170 Read volume rate from Ert --- ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp index e3cccd30fe..9085f0044f 100644 --- a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp +++ b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp @@ -918,6 +918,7 @@ RigWellResultPoint RifReaderEclipseOutput::createWellResultPoint(const RigGridBa int cellJ = well_conn_get_j( ert_connection ); int cellK = well_conn_get_k( ert_connection ); bool isCellOpen = well_conn_open( ert_connection ); + double volumeRate = well_conn_get_volume_rate( ert_connection); // If a well is defined in fracture region, the K-value is from (cellCountK - 1) -> cellCountK*2 - 1 // Adjust K so index is always in valid grid region @@ -969,7 +970,7 @@ RigWellResultPoint RifReaderEclipseOutput::createWellResultPoint(const RigGridBa resultPoint.m_ertBranchId = ertBranchId; resultPoint.m_ertSegmentId = ertSegmentId; - resultPoint.m_flowRate = 0.5; // Todo : Get from Ert + resultPoint.m_flowRate = volumeRate; } return resultPoint;