]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Prefer names with std::. 18352/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 11 Apr 2025 14:45:26 +0000 (08:45 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 11 Apr 2025 15:19:10 +0000 (09:19 -0600)
include/deal.II/lac/petsc_block_sparse_matrix.h
include/deal.II/lac/petsc_block_vector.h
include/deal.II/lac/petsc_sparse_matrix.h

index 9c301b43bb5549de2f0d217639014547a2fd285b..0ffe956c194af7193a45cac40a565c85f428e70d 100644 (file)
@@ -27,6 +27,7 @@
 #  include <deal.II/lac/petsc_sparse_matrix.h>
 
 #  include <cmath>
+#  include <cstddef>
 
 DEAL_II_NAMESPACE_OPEN
 
@@ -113,7 +114,7 @@ namespace PETScWrappers
       /**
        * Create a BlockSparseMatrix with an array of PETSc matrices.
        */
-      template <size_t block_rows, size_t block_columns>
+      template <std::size_t block_rows, std::size_t block_columns>
       explicit BlockSparseMatrix(
         const std::array<std::array<Mat, block_columns>, block_rows> &);
 
@@ -370,7 +371,7 @@ namespace PETScWrappers
 
 
 
-    template <size_t block_rows, size_t block_columns>
+    template <std::size_t block_rows, std::size_t block_columns>
     inline BlockSparseMatrix::BlockSparseMatrix(
       const std::array<std::array<Mat, block_columns>, block_rows> &arrayA)
       : BlockSparseMatrix()
index 7cb9a01e8112d0e33dd976c9c5b5e8b1d5fcf630..68b26de13f5650a3d81e4f509c59cddbf47ae364 100644 (file)
@@ -26,6 +26,8 @@
 #  include <deal.II/lac/petsc_vector.h>
 #  include <deal.II/lac/vector_type_traits.h>
 
+#  include <cstddef>
+
 DEAL_II_NAMESPACE_OPEN
 
 
@@ -140,7 +142,7 @@ namespace PETScWrappers
       /**
        * Create a BlockVector with an array of PETSc vectors.
        */
-      template <size_t num_blocks>
+      template <std::size_t num_blocks>
       explicit BlockVector(const std::array<Vec, num_blocks> &);
 
       /**
@@ -452,7 +454,7 @@ namespace PETScWrappers
 
 
 
-    template <size_t num_blocks>
+    template <std::size_t num_blocks>
     inline BlockVector::BlockVector(const std::array<Vec, num_blocks> &arrayV)
       : BlockVector()
     {
index 7b4ddf05ea0ce2defbed66ad5f59a7b7a27ea015..dbc2d2c50ea1777f37ff60499615ce7048dde309 100644 (file)
@@ -27,6 +27,7 @@
 #  include <petscis.h>
 #  include <petscistypes.h>
 
+#  include <cstddef>
 #  include <vector>
 
 DEAL_II_NAMESPACE_OPEN
@@ -221,13 +222,13 @@ namespace PETScWrappers
     /**
      * Return the number of rows of this matrix.
      */
-    size_t
+    std::size_t
     m() const;
 
     /**
      * Return the number of columns of this matrix.
      */
-    size_t
+    std::size_t
     n() const;
 
     /**

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.