]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make constructors explicit 15116/head
authorStefano Zampini <stefano.zampini@gmail.com>
Thu, 20 Apr 2023 15:38:30 +0000 (18:38 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Thu, 20 Apr 2023 15:38:30 +0000 (18:38 +0300)
include/deal.II/lac/petsc_block_sparse_matrix.h
include/deal.II/lac/petsc_block_vector.h

index 279301e1291ee0436cb3f026fb585016682b3288..da1dab073d84221daca3ee49721c029d377caac4 100644 (file)
@@ -115,7 +115,7 @@ namespace PETScWrappers
        * Create a BlockSparseMatrix with an array of PETSc matrices.
        */
       template <size_t block_rows, size_t block_columns>
-      BlockSparseMatrix(
+      explicit BlockSparseMatrix(
         const std::array<std::array<Mat, block_columns>, block_rows> &);
 
       /**
index 35b3d48591b759a0a7a451d4003bfccde5597acf..1036745888d10f901b958b9456f023f9c1247523 100644 (file)
@@ -142,7 +142,7 @@ namespace PETScWrappers
        * Create a BlockVector with an array of PETSc vectors.
        */
       template <size_t num_blocks>
-      BlockVector(const std::array<Vec, num_blocks> &);
+      explicit BlockVector(const std::array<Vec, num_blocks> &);
 
       /**
        * Destructor. Clears memory

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.