diff --git a/opm/simulators/wells/WellState.cpp b/opm/simulators/wells/WellState.cpp index affbd1449..fc5ea83f7 100644 --- a/opm/simulators/wells/WellState.cpp +++ b/opm/simulators/wells/WellState.cpp @@ -148,11 +148,6 @@ void WellState::init(const std::vector& cellPressures, const auto& pu = this->phaseUsage(); const int np = pu.num_phases; - int nperf = 0; - for (const auto& wpd : well_perf_data) { - nperf += wpd.size(); - } - { const auto& wg_events = schedule[report_step].wellgroup_events(); for (const auto& ecl_well : wells_ecl) { diff --git a/tests/DuneIstlTestHelpers.hpp b/tests/DuneIstlTestHelpers.hpp index 9876a3952..4165562a4 100644 --- a/tests/DuneIstlTestHelpers.hpp +++ b/tests/DuneIstlTestHelpers.hpp @@ -134,12 +134,10 @@ std::shared_ptr create1DLaplacian(I& indexset, int N, int start, int e continue; } - double dval=0; if(row>0) { mm->colIndex[nnz]=localRow-1; mm->data[nnz++]=-1; - dval+=1; } mm->colIndex[nnz]=localRow; mm->data[nnz++]=2;//dval+(row create1DLaplacian(I& indexset, int N, int start, int e { mm->colIndex[nnz]=localRow+1; mm->data[nnz++]=-1; - dval+=1; } mm->rowStart[localRow+1]=nnz; indexset.add(row, LocalIndex(localRow, GridAttributes::owner, true)); diff --git a/tests/test_invert.cpp b/tests/test_invert.cpp index 5a339968b..51f80cce5 100644 --- a/tests/test_invert.cpp +++ b/tests/test_invert.cpp @@ -43,7 +43,6 @@ BOOST_AUTO_TEST_CASE(Invert4x4) { typedef Dune::FieldMatrix BaseType; BaseType matrix; - BaseType eye; BaseType inverse; for (int i = 0; i < 4; ++i) {