From 6b2a3b480e2161753cec0eba3548dde9784f24a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org> Date: Thu, 16 Mar 2023 19:49:01 +0100 Subject: [PATCH] vectorcommtest: Remove unsed variable k --- dune/istl/test/vectorcommtest.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dune/istl/test/vectorcommtest.cc b/dune/istl/test/vectorcommtest.cc index 9196032d0..dc5b20e49 100644 --- a/dune/istl/test/vectorcommtest.cc +++ b/dune/istl/test/vectorcommtest.cc @@ -80,13 +80,11 @@ void testIndices(MPI_Comm comm) // build global indexset on first process globalIndexSet.beginResize(); globalArray=new Array(Nx*Ny); - int k=0; + for(int j=0; j<Ny; j++) for(int i=0; i<Nx; i++) { globalIndexSet.add(i+j*Nx, Dune::ParallelLocalIndex<GridFlags> (i+j*Nx,owner,false)); globalArray->operator[](i+j*Nx)=-(i+j*Nx); - k++; - } globalIndexSet.endResize(); -- GitLab