]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move a function into namespace dealii. 18384/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 23 Apr 2025 14:07:15 +0000 (08:07 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 23 Apr 2025 15:50:30 +0000 (09:50 -0600)
source/lac/petsc_parallel_block_sparse_matrix.cc

index 7123cec66d162984501cca19c916317cbcf3df0e..8f35e8590a368335f09bddbee8550ed2baca369b 100644 (file)
 //
 // ------------------------------------------------------------------------
 
+#include <deal.II/base/mpi_stub.h>
+
 #include <deal.II/lac/petsc_block_sparse_matrix.h>
 #include <deal.II/lac/petsc_compatibility.h>
 
+
 #ifdef DEAL_II_WITH_PETSC
 
+#  include <petscmat.h>
+
+
+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<PetscInt>(row_local_sizes[r]),
-                    static_cast<PetscInt>(row_sizes[r]),
-                    static_cast<PetscInt>(col_local_sizes[c]),
-                    static_cast<PetscInt>(col_sizes[c]));
+                  Mat dummy =
+                    create_dummy_mat(comm,
+                                     static_cast<PetscInt>(row_local_sizes[r]),
+                                     static_cast<PetscInt>(row_sizes[r]),
+                                     static_cast<PetscInt>(col_local_sizes[c]),
+                                     static_cast<PetscInt>(col_sizes[c]));
                   this->sub_objects[r][c] = new BlockType(dummy);
 
                   // the new object got a reference on dummy, we can safely

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.