Skip to content

Commit

Permalink
Merge pull request #14280 from kronbichler/fix_uninitialized
Browse files Browse the repository at this point in the history
Make sure not to work with possibly uninitialized variables
  • Loading branch information
tjhei committed Sep 18, 2022
2 parents 4b3ddb2 + ced1ae1 commit 221b8f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/matrix_free/stokes_computation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace StokesClass
// apply the top right block
{
LinearAlgebra::distributed::BlockVector<double> dst_tmp(dst);
dst_tmp.block(0) *= 0.0;
dst_tmp.block(0) = 0.0;
stokes_matrix.vmult(utmp, dst_tmp); // B^T
utmp.block(0) *= -1.0;
utmp.block(0) += src.block(0);
Expand Down
2 changes: 1 addition & 1 deletion tests/numerics/no_flux_18.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ namespace StokesClass
// apply the top right block
{
LinearAlgebra::distributed::BlockVector<double> dst_tmp(dst);
dst_tmp.block(0) *= 0.0;
dst_tmp.block(0) = 0.0;
stokes_matrix.vmult(utmp, dst_tmp); // B^T
utmp.block(0) *= -1.0;
utmp.block(0) += src.block(0);
Expand Down

0 comments on commit 221b8f1

Please sign in to comment.