From: Stefano Zampini Date: Tue, 11 Apr 2023 21:11:10 +0000 (+0300) Subject: initialize sizes X-Git-Tag: v9.5.0-rc1~336^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d4d2596838ba02b95e06e39264f44b91a45a8f5;p=dealii.git initialize sizes --- diff --git a/source/lac/petsc_parallel_block_sparse_matrix.cc b/source/lac/petsc_parallel_block_sparse_matrix.cc index fe4c291c05..f75fb5513d 100644 --- a/source/lac/petsc_parallel_block_sparse_matrix.cc +++ b/source/lac/petsc_parallel_block_sparse_matrix.cc @@ -166,10 +166,10 @@ namespace PETScWrappers // Create empty matrices if needed // This is neeeded by the base class // not by MATNEST - std::vector row_sizes(m); - std::vector col_sizes(n); - std::vector row_local_sizes(m); - std::vector col_local_sizes(n); + std::vector row_sizes(m, size_type(-1)); + std::vector col_sizes(n, size_type(-1)); + std::vector row_local_sizes(m, size_type(-1)); + std::vector col_local_sizes(n, size_type(-1)); MPI_Comm comm = MPI_COMM_NULL; for (size_type r = 0; r < m; r++) {