]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark input arguments as constant.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Nov 2012 00:57:22 +0000 (00:57 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Nov 2012 00:57:22 +0000 (00:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@27382 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/constraint_matrix.h

index 6baf697998d2fd45dfa2773996c4bee1c6528fad..7b86d099fab5978ceb3b788b82ec0eef03baaf65 100644 (file)
@@ -1061,10 +1061,10 @@ class ConstraintMatrix : public Subscriptor
                                      */
     template <class VectorType>
     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 <class VectorType>
 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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.