From: Martin Kronbichler Date: Tue, 28 Sep 2021 19:12:41 +0000 (+0200) Subject: Avoid set but unused variable X-Git-Tag: v9.4.0-rc1~971^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12782%2Fhead;p=dealii.git Avoid set but unused variable --- 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];