From 20fb005c2433d9fe3cf3189ecda3455c23a43c7a Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 5 Oct 2015 15:59:08 +0200 Subject: [PATCH] Fxied bug in table-container use. --- opm/core/simulator/initStateEquil.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/core/simulator/initStateEquil.hpp b/opm/core/simulator/initStateEquil.hpp index 707287405..6ce7f96bb 100644 --- a/opm/core/simulator/initStateEquil.hpp +++ b/opm/core/simulator/initStateEquil.hpp @@ -290,11 +290,10 @@ namespace Opm if (deck->hasKeyword("DISGAS")) { const TableContainer& rsvdTables = tables->getRsvdTables(); for (size_t i = 0; i < rec.size(); ++i) { - const RsvdTable& rsvdTable = rsvdTables.getTable(i); const int cell = *(eqlmap.cells(i).begin()); if (rec[i].live_oil_table_index > 0) { if (rsvdTables.size() > 0 && size_t(rec[i].live_oil_table_index) <= rsvdTables.size()) { - + const RsvdTable& rsvdTable = rsvdTables.getTable(i); rs_func_.push_back(std::make_shared(props, cell, rsvdTable.getDepthColumn(),