]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid set but unused variable 12782/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 28 Sep 2021 19:12:41 +0000 (21:12 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 28 Sep 2021 19:12:41 +0000 (21:12 +0200)
source/lac/petsc_parallel_sparse_matrix.cc

index adfe10b85e55b4f49d33e757466a3214c84f6858..0b5e0492dd1cc8230ac5c67e691c67168c812bb5 100644 (file)
@@ -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];
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.