]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Constify some variables.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2003 20:00:34 +0000 (20:00 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 11 Mar 2003 20:00:34 +0000 (20:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@7323 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h
deal.II/lac/include/lac/sparse_matrix_ez.h
deal.II/lac/include/lac/sparse_matrix_ez.templates.h

index b3eb6cdf786dc6be3fe948b4f733d6e5f18d0e51..18e88af26968eae3df574ad69d92b7c724e6b701 100644 (file)
@@ -21,7 +21,8 @@
 
 
 template <typename number>
-BlockSparseMatrixEZ<number>::BlockSparseMatrixEZ () :
+BlockSparseMatrixEZ<number>::BlockSparseMatrixEZ ()
+                :
                row_indices (0),
                column_indices (0)
 {};
@@ -30,7 +31,9 @@ BlockSparseMatrixEZ<number>::BlockSparseMatrixEZ () :
 
 template <typename number>
 BlockSparseMatrixEZ<number>::
-BlockSparseMatrixEZ (unsigned int rows, unsigned int cols) :
+BlockSparseMatrixEZ (const unsigned int rows,
+                     const unsigned int cols)
+                :
                row_indices (rows),
                column_indices (cols)
 {};
index 64a3ccc32efea3158fc1547c1138946744e2917b..59b5acd690eadecfc9e7d5fd4943464648335238 100644 (file)
@@ -391,10 +391,10 @@ class SparseMatrixEZ : public Subscriptor
                                      * efficient assembling of the
                                      * matrix.
                                      */
-    void reinit (unsigned int n_rows,
-                unsigned int n_columns,
-                unsigned int default_row_length = Entry::invalid,
-                unsigned int default_increment = Entry::invalid);
+    void reinit (const unsigned int n_rows,
+                const unsigned int n_columns,
+                const unsigned int default_row_length = Entry::invalid,
+                const unsigned int default_increment = Entry::invalid);
 
                                     /**
                                      * Release all memory and return
index 097673036a261b1d466279e195ad965d903de6b6..13f27fa01fd337c26051a92ead105baef173783e 100644 (file)
@@ -64,10 +64,10 @@ SparseMatrixEZ<number>::operator= (const SparseMatrixEZ<number>& m)
 
 template <typename number>
 void
-SparseMatrixEZ<number>::reinit(unsigned int n_rows,
-                              unsigned int n_cols,
-                              unsigned int default_row_length,
-                              unsigned int default_increment)
+SparseMatrixEZ<number>::reinit(const unsigned int n_rows,
+                              const unsigned int n_cols,
+                              const unsigned int default_row_length,
+                              const unsigned int default_increment)
 {
   clear();
   if (default_row_length == Entry::invalid)

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.