From 0e747d1d0f9c08d1a0f53b454ec36163d0ee4864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 27 Mar 2012 11:00:48 +0200 Subject: [PATCH] Silence warning. --- opm/core/ColumnExtract.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/core/ColumnExtract.hpp b/opm/core/ColumnExtract.hpp index 5a4cdc76..51916923 100644 --- a/opm/core/ColumnExtract.hpp +++ b/opm/core/ColumnExtract.hpp @@ -62,7 +62,8 @@ void extractColumn( const UnstructuredGrid& grid, std::pair, st columns.second[local_index].push_back(i); } - for(int i = 0; i < columns.second.size(); ++i) { + int num_cols = columns.second.size(); + for(int i = 0; i < num_cols; ++i) { std::sort(columns.second[i].begin(), columns.second[i].end(), ExtractColumnCompare(grid)); } }