From e7f619c6ffcc38fde8ae90b01c9a924af11230e7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 20 Sep 2016 17:39:28 -0600 Subject: [PATCH] Make input arguments 'const'. --- include/deal.II/lac/sparse_direct.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/sparse_direct.h b/include/deal.II/lac/sparse_direct.h index 4d2e09e070..4efb441150 100644 --- a/include/deal.II/lac/sparse_direct.h +++ b/include/deal.II/lac/sparse_direct.h @@ -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 &rhs_and_solution, bool transpose = false) const; + void solve (Vector &rhs_and_solution, + const bool transpose = false) const; /** * Same as before, but for block vectors. */ - void solve (BlockVector &rhs_and_solution, bool transpose = false) const; + void solve (BlockVector &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 void solve (const Matrix &matrix, Vector &rhs_and_solution, - bool transpose = false); + const bool transpose = false); /** * Same as before, but for block vectors. @@ -250,7 +252,7 @@ public: template void solve (const Matrix &matrix, BlockVector &rhs_and_solution, - bool transpose = false); + const bool transpose = false); /** * @} -- 2.39.5