]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed unused variables warning 13677/head
authorNicolas Barnafi <nabw91@gmail.com>
Fri, 16 Sep 2022 17:09:13 +0000 (19:09 +0200)
committerNicolas Barnafi <nabw91@gmail.com>
Fri, 16 Sep 2022 17:09:13 +0000 (19:09 +0200)
source/lac/petsc_parallel_sparse_matrix.cc

index b1cb645e96dd30d9a4aa652f07ba74977746ca65..7bbd637180cc6d5e6511998dc6d9f000599e5b61 100644 (file)
@@ -642,6 +642,12 @@ namespace PETScWrappers
       AssertThrow(ierr == 0, ExcPETScError(ierr));
 #  else
       {
+        // Use this to avoid unused variables warning
+        (void)local_rows;
+        (void)local_active_rows;
+        (void)local_columns;
+        (void)local_active_columns;
+        (void)sparsity_pattern;
         AssertThrow(false,
                     ExcMessage(
                       "BDDC preconditioner requires PETSc 3.10.0 or newer"));

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.