]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use uninitialized variable in tests 13016/head
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Tue, 30 Nov 2021 21:35:43 +0000 (22:35 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Tue, 30 Nov 2021 21:35:43 +0000 (22:35 +0100)
tests/matrix_free/multigrid_dg_periodic.cc
tests/matrix_free/multigrid_dg_sip_01.cc
tests/matrix_free/multigrid_dg_sip_02.cc
tests/matrix_free/parallel_multigrid.cc
tests/matrix_free/parallel_multigrid_adaptive_01.cc
tests/matrix_free/parallel_multigrid_adaptive_03.cc
tests/matrix_free/parallel_multigrid_adaptive_05.cc
tests/matrix_free/parallel_multigrid_fullydistributed.cc
tests/matrix_free/parallel_multigrid_mf.cc

index 0ab4b763c28432cfb443679eeffcd970ee76e259..09606de2149571ad14dbad142c5f51e27d58d21d 100644 (file)
@@ -273,7 +273,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.loop(&LaplaceOperator::local_diagonal_cell,
               &LaplaceOperator::local_diagonal_face,
               &LaplaceOperator::local_diagonal_boundary,
index f3ae6632ab6504d0ad8115bcd50205e9845431ab..381b6155145fcb853554bbab7d951623eba4b3bf 100644 (file)
@@ -282,7 +282,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.loop(&LaplaceOperator::local_diagonal_cell,
               &LaplaceOperator::local_diagonal_face,
               &LaplaceOperator::local_diagonal_boundary,
index 8f610c450941eb209b86350110b2f7a7a6635f21..609cc7257632b554a13a4ad3a3f03971db82c877 100644 (file)
@@ -285,7 +285,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index b9d7f65c986bb31c704ab022564f9425d30829e6..f0ab3f8a768f0aef8cb3548e49adf0c770321023 100644 (file)
@@ -222,7 +222,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index 7647e3c79565272221ccd3ea31b61ed1241374f6..1dfeaf273ffe316d61068ae256d0040d1ec2f040 100644 (file)
@@ -330,7 +330,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index 422fa5886030126263bc239f3dfd397983618738..c5dc325f5dadab5467ded877078e10bf5182c9a4 100644 (file)
@@ -337,7 +337,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index bd18147d1ebd2c52d1d2fa79b6b2fd42237cdea6..6cb67244a7c7ed0c3752c3efc5ea1987730631d4 100644 (file)
@@ -334,7 +334,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index 27b0a321f36b7011ce2cf88b289305cf6d839014..fc068d8ae7697c2a705a449565249248e41c631c 100644 (file)
@@ -226,7 +226,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,
index e75b03cc9fd40e72c71497ab3fc32b0be2af4126..60467a8c658fb02be73b9b19ab474721bdcab59b 100644 (file)
@@ -222,7 +222,7 @@ private:
   compute_inverse_diagonal()
   {
     data.initialize_dof_vector(inverse_diagonal_entries);
-    unsigned int dummy;
+    unsigned int dummy = 0;
     data.cell_loop(&LaplaceOperator::local_diagonal_cell,
                    this,
                    inverse_diagonal_entries,

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.