From: Wolfgang Bangerth Date: Wed, 23 Apr 2025 14:07:15 +0000 (-0600) Subject: Move a function into namespace dealii. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9bfafedd5c96aba11d55bccba45ebfd54e92ba6;p=dealii.git Move a function into namespace dealii. --- diff --git a/source/lac/petsc_parallel_block_sparse_matrix.cc b/source/lac/petsc_parallel_block_sparse_matrix.cc index 7123cec66d..8f35e8590a 100644 --- a/source/lac/petsc_parallel_block_sparse_matrix.cc +++ b/source/lac/petsc_parallel_block_sparse_matrix.cc @@ -12,11 +12,19 @@ // // ------------------------------------------------------------------------ +#include + #include #include + #ifdef DEAL_II_WITH_PETSC +# include + + +DEAL_II_NAMESPACE_OPEN + namespace { // A dummy utility routine to create an empty matrix in case we import @@ -53,7 +61,6 @@ namespace } } // namespace -DEAL_II_NAMESPACE_OPEN namespace PETScWrappers { @@ -209,12 +216,12 @@ namespace PETScWrappers std::to_string(c) + " is completely empty " "and so it is not possible to determine how many columns it should have.")); - Mat dummy = ::create_dummy_mat( - comm, - static_cast(row_local_sizes[r]), - static_cast(row_sizes[r]), - static_cast(col_local_sizes[c]), - static_cast(col_sizes[c])); + Mat dummy = + create_dummy_mat(comm, + static_cast(row_local_sizes[r]), + static_cast(row_sizes[r]), + static_cast(col_local_sizes[c]), + static_cast(col_sizes[c])); this->sub_objects[r][c] = new BlockType(dummy); // the new object got a reference on dummy, we can safely