From 0f010daaf8b7d1eba8eaa01d5682d4e1d2d9187b Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 31 May 2023 09:33:23 +0200 Subject: [PATCH] remove unused variables --- ebos/eclgenericwriter.cc | 2 -- tests/test_equil.cc | 3 --- 2 files changed, 5 deletions(-) diff --git a/ebos/eclgenericwriter.cc b/ebos/eclgenericwriter.cc index 8193c6dbf..ccf3a6cad 100644 --- a/ebos/eclgenericwriter.cc +++ b/ebos/eclgenericwriter.cc @@ -351,7 +351,6 @@ exportNncStructure_(const std::unordered_map& cartesianToActive, const std::size_t ny = eclState_.getInputGrid().getNY(); auto nncData = eclState_.getInputNNC().input(); const auto& unitSystem = eclState_.getDeckUnitSystem(); - std::size_t index = 0; for( const auto& entry : nncData ) { // test whether NNC is not a neighboring connection @@ -365,7 +364,6 @@ exportNncStructure_(const std::unordered_map& cartesianToActive, const if ( tt >= 1.0e-6 ) outputNnc_.emplace_back(entry.cell1, entry.cell2, entry.trans); } - ++index; } using GlobalGridView = typename EquilGrid::LeafGridView; diff --git a/tests/test_equil.cc b/tests/test_equil.cc index 996355dd3..df8f92b0b 100644 --- a/tests/test_equil.cc +++ b/tests/test_equil.cc @@ -512,14 +512,11 @@ BOOST_AUTO_TEST_CASE(RegMapping) for (const auto& r : eqlmap.activeRegions()) { ptable.equilibrate(region[r], vspan); - PVal::size_type i = 0; for (const auto& c : eqlmap.cells(r)) { const auto depth = centerDepth(*simulator, c); ppress[0][c] = ptable.water(depth); ppress[1][c] = ptable.oil (depth); - - ++i; } }