From ef606711f2fc754a2120eb9ff57b165f3e8bf614 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 30 Jan 2019 10:35:33 +0100 Subject: [PATCH] using global_index in serialize_OPM_XWEL() it looks like in data::Wells the index is global index. --- src/opm/output/eclipse/RestartIO.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opm/output/eclipse/RestartIO.cpp b/src/opm/output/eclipse/RestartIO.cpp index 070034ea2..d00b98411 100644 --- a/src/opm/output/eclipse/RestartIO.cpp +++ b/src/opm/output/eclipse/RestartIO.cpp @@ -136,14 +136,14 @@ namespace { continue; } - const auto active_index = grid.activeIndex(i, j, k); + const auto global_index = grid.getGlobalIndex(i, j, k); const auto& connection = std::find_if(well.connections.begin(), well.connections.end(), - [active_index](const data::Connection& c) + [global_index](const data::Connection& c) { - return c.index == active_index; + return c.index == global_index; }); if (connection == well.connections.end()) {