From 95720e6d3e171157b9cbe92c88d253f293190700 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 5 Nov 2012 00:57:22 +0000 Subject: [PATCH] Mark input arguments as constant. git-svn-id: https://svn.dealii.org/trunk@27382 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/constraint_matrix.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/include/deal.II/lac/constraint_matrix.h b/deal.II/include/deal.II/lac/constraint_matrix.h index 6baf697998..7b86d099fa 100644 --- a/deal.II/include/deal.II/lac/constraint_matrix.h +++ b/deal.II/include/deal.II/lac/constraint_matrix.h @@ -1061,10 +1061,10 @@ class ConstraintMatrix : public Subscriptor */ template void - distribute_local_to_global (unsigned int index, - double value, + distribute_local_to_global (const unsigned int index, + const double value, VectorType &global_vector) const; - + /** * This function takes a pointer to a * vector of local contributions (@p @@ -1995,12 +1995,12 @@ ConstraintMatrix::can_store_line (unsigned int line_index) const template inline void ConstraintMatrix::distribute_local_to_global ( - unsigned int index, - double value, + const unsigned int index, + const double value, VectorType &global_vector) const { Assert (sorted == true, ExcMatrixNotClosed()); - + if (is_constrained(index) == false) global_vector(index) += value; else -- 2.39.5