From: Wolfgang Bangerth Date: Mon, 5 Nov 2012 00:57:22 +0000 (+0000) Subject: Mark input arguments as constant. X-Git-Tag: v8.0.0~1866 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b23b731b9f9725bd5794fa880135eba4362965c2;p=dealii.git Mark input arguments as constant. git-svn-id: https://svn.dealii.org/trunk@27382 0785d39b-7218-0410-832d-ea1e28bc413d --- 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