From a00475983ba15c4f92f23bfd42f2a206e98bf132 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 28 Sep 2021 21:12:41 +0200 Subject: [PATCH] Avoid set but unused variable --- source/lac/petsc_parallel_sparse_matrix.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/lac/petsc_parallel_sparse_matrix.cc b/source/lac/petsc_parallel_sparse_matrix.cc index adfe10b85e..0b5e0492dd 100644 --- a/source/lac/petsc_parallel_sparse_matrix.cc +++ b/source/lac/petsc_parallel_sparse_matrix.cc @@ -316,12 +316,8 @@ namespace PETScWrappers // first have to know which areas are // ours size_type local_row_start = 0; - size_type local_col_start = 0; for (unsigned int p = 0; p < this_process; ++p) - { - local_row_start += local_rows_per_process[p]; - local_col_start += local_columns_per_process[p]; - } + local_row_start += local_rows_per_process[p]; const size_type local_row_end = local_row_start + local_rows_per_process[this_process]; -- 2.39.5