From 3cc78f24875f33f7d4ebdf72363b8769a5c8280f Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 11 Mar 2020 08:08:05 +0100 Subject: [PATCH] The numerical value 0 is used to signify no connection <-> segment --- opm/parser/eclipse/EclipseState/Schedule/Well/Connection.hpp | 4 ++-- src/opm/io/eclipse/rst/connection.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/Connection.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/Connection.hpp index df66e7b0f..eecd1b183 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/Connection.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/Connection.hpp @@ -175,8 +175,8 @@ namespace Opm { std::size_t m_compSeg_seqIndex=0; // related segment number - // -1 means the completion is not related to segment - int segment_number = -1; + // 0 means the completion is not related to segment + int segment_number = 0; double wPi = 1.0; static std::string CTFKindToString(const CTFKind); diff --git a/src/opm/io/eclipse/rst/connection.cpp b/src/opm/io/eclipse/rst/connection.cpp index c4b7019ce..cfa26b4a6 100644 --- a/src/opm/io/eclipse/rst/connection.cpp +++ b/src/opm/io/eclipse/rst/connection.cpp @@ -66,7 +66,7 @@ RstConnection::RstConnection(const ::Opm::UnitSystem& unit_system, const int* ic imb_sat_table( icon[VI::IConn::Imbibition]), completion( icon[VI::IConn::ComplNum]), dir( from_int(icon[VI::IConn::ConnDir])), - segment( icon[VI::IConn::Segment] - 1), + segment( icon[VI::IConn::Segment]), tran( unit_system.to_si(M::transmissibility, scon[VI::SConn::ConnTrans])), depth( unit_system.to_si(M::length, scon[VI::SConn::Depth])), diameter( unit_system.to_si(M::length, scon[VI::SConn::Diameter])),