]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make input arguments 'const'. 3141/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Sep 2016 23:39:28 +0000 (17:39 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Sep 2016 23:39:54 +0000 (17:39 -0600)
include/deal.II/lac/sparse_direct.h

index 4d2e09e070b3756601331854a6a07d29c9a27e13..4efb441150d8ee14149f73ec7311001b90cb7491 100644 (file)
@@ -226,12 +226,14 @@ public:
    * If @p transpose is set to true this function solves for the transpose of
    * the matrix, i.e. $x=A^{-T}b$.
    */
-  void solve (Vector<double> &rhs_and_solution, bool transpose = false) const;
+  void solve (Vector<double> &rhs_and_solution,
+              const bool      transpose = false) const;
 
   /**
    * Same as before, but for block vectors.
    */
-  void solve (BlockVector<double> &rhs_and_solution, bool transpose = false) const;
+  void solve (BlockVector<double> &rhs_and_solution,
+              const bool           transpose = false) const;
 
   /**
    * Call the two functions factorize() and solve() in that order, i.e.
@@ -242,7 +244,7 @@ public:
   template <class Matrix>
   void solve (const Matrix   &matrix,
               Vector<double> &rhs_and_solution,
-              bool            transpose = false);
+              const bool      transpose = false);
 
   /**
    * Same as before, but for block vectors.
@@ -250,7 +252,7 @@ public:
   template <class Matrix>
   void solve (const Matrix        &matrix,
               BlockVector<double> &rhs_and_solution,
-              bool                 transpose = false);
+              const bool           transpose = false);
 
   /**
    * @}

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.