From: Wolfgang Bangerth Date: Mon, 30 Dec 2019 18:55:02 +0000 (-0700) Subject: Mark a bunch of input arguments as 'const'. X-Git-Tag: v9.2.0-rc1~759^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9202%2Fhead;p=dealii.git Mark a bunch of input arguments as 'const'. --- diff --git a/source/lac/sparse_direct.cc b/source/lac/sparse_direct.cc index 2592e599d9..9a225192ab 100644 --- a/source/lac/sparse_direct.cc +++ b/source/lac/sparse_direct.cc @@ -296,7 +296,7 @@ SparseDirectUMFPACK::factorize(const Matrix &matrix) void SparseDirectUMFPACK::solve(Vector &rhs_and_solution, - bool transpose /*=false*/) const + const bool transpose /*=false*/) const { // make sure that some kind of factorize() call has happened before Assert(Ap.size() != 0, ExcNotInitialized()); @@ -328,7 +328,7 @@ SparseDirectUMFPACK::solve(Vector &rhs_and_solution, void SparseDirectUMFPACK::solve(BlockVector &rhs_and_solution, - bool transpose /*=false*/) const + const bool transpose /*=false*/) const { // the UMFPACK functions want a contiguous array of elements, so // there is no way around copying data around. thus, just copy the @@ -345,7 +345,7 @@ template void SparseDirectUMFPACK::solve(const Matrix & matrix, Vector &rhs_and_solution, - bool transpose /*=false*/) + const bool transpose /*=false*/) { factorize(matrix); solve(rhs_and_solution, transpose); @@ -356,7 +356,7 @@ template void SparseDirectUMFPACK::solve(const Matrix & matrix, BlockVector &rhs_and_solution, - bool transpose /*=false*/) + const bool transpose /*=false*/) { factorize(matrix); solve(rhs_and_solution, transpose); @@ -392,7 +392,7 @@ SparseDirectUMFPACK::factorize(const Matrix &) void -SparseDirectUMFPACK::solve(Vector &, bool) const +SparseDirectUMFPACK::solve(Vector &, const bool) const { AssertThrow( false, @@ -403,7 +403,7 @@ SparseDirectUMFPACK::solve(Vector &, bool) const void -SparseDirectUMFPACK::solve(BlockVector &, bool) const +SparseDirectUMFPACK::solve(BlockVector &, const bool) const { AssertThrow( false, @@ -414,7 +414,7 @@ SparseDirectUMFPACK::solve(BlockVector &, bool) const template void -SparseDirectUMFPACK::solve(const Matrix &, Vector &, bool) +SparseDirectUMFPACK::solve(const Matrix &, Vector &, const bool) { AssertThrow( false, @@ -426,7 +426,7 @@ SparseDirectUMFPACK::solve(const Matrix &, Vector &, bool) template void -SparseDirectUMFPACK::solve(const Matrix &, BlockVector &, bool) +SparseDirectUMFPACK::solve(const Matrix &, BlockVector &, const bool) { AssertThrow( false,