using global_index in serialize_OPM_XWEL()

it looks like in data::Wells the index is global index.
This commit is contained in:
Kai Bao
2019-01-30 10:35:33 +01:00
parent bd4e872230
commit ef606711f2

View File

@@ -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()) {