From: Wolfgang Bangerth Date: Tue, 20 Sep 2016 23:39:28 +0000 (-0600) Subject: Make input arguments 'const'. X-Git-Tag: v8.5.0-rc1~652^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3141%2Fhead;p=dealii.git Make input arguments 'const'. --- 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); /** * @}