From 56906f1cdc25ea9d31d1e66e29213cadd2fe5618 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 30 Dec 2019 11:55:02 -0700 Subject: [PATCH] Mark a bunch of input arguments as 'const'. --- source/lac/sparse_direct.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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, -- 2.39.5