]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning in MatrixFreeTools::compute_diagonal 12202/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 14 May 2021 12:57:10 +0000 (08:57 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 14 May 2021 12:57:10 +0000 (08:57 -0400)
include/deal.II/matrix_free/tools.h

index dec6d3bc593760144ace628543331c6e0aa40d2e..22f11b0ec227e2195b5121d769d2b7ef9fa5b296 100644 (file)
@@ -611,7 +611,7 @@ namespace MatrixFreeTools
     // initialize vector
     matrix_free.initialize_dof_vector(diagonal_global, dof_no);
 
-    int dummy;
+    int dummy = 0;
 
     matrix_free.template cell_loop<VectorType, int>(
       [&](const MatrixFree<dim, Number, VectorizedArrayType> &matrix_free,

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.