]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change unsigned int to types::global_dof_index.
authorbuerg <buerg@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Aug 2012 07:08:07 +0000 (07:08 +0000)
committerbuerg <buerg@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Aug 2012 07:08:07 +0000 (07:08 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_3@25914 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/chunk_sparse_matrix.h

index 15f2ef006abae0158075fb7b1ab9f1e0d9bce482..ab5cffd3428c5890dc8eeefffc332362e7613a22 100644 (file)
@@ -290,7 +290,7 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * matrix is of dimension
                                       * $m \times n$.
                                       */
-    unsigned int m () const;
+    types::global_dof_index m () const;
 
                                      /**
                                       * Return the dimension of the
@@ -298,7 +298,7 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * matrix is of dimension
                                       * $m \times n$.
                                       */
-    unsigned int n () const;
+    types::global_dof_index n () const;
 
                                      /**
                                       * Return the number of nonzero
@@ -361,8 +361,8 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * is allowed to store zero
                                       * values in non-existent fields.
                                       */
-    void set (const unsigned int i,
-              const unsigned int j,
+    void set (const types::global_dof_index i,
+              const types::global_dof_index j,
               const number value);
 
                                      /**
@@ -374,8 +374,8 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * is allowed to store zero
                                       * values in non-existent fields.
                                       */
-    void add (const unsigned int i,
-              const unsigned int j,
+    void add (const types::global_dof_index i,
+              const types::global_dof_index j,
               const number value);
 
                                      /**
@@ -549,8 +549,8 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * tailored better to a sparse matrix
                                       * structure.
                                       */
-    number operator () (const unsigned int i,
-                        const unsigned int j) const;
+    number operator () (const types::global_dof_index i,
+                        const types::global_dof_index j) const;
 
                                      /**
                                       * This function is mostly like
@@ -576,8 +576,8 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * tailored better to a sparse matrix
                                       * structure.
                                       */
-    number el (const unsigned int i,
-               const unsigned int j) const;
+    number el (const types::global_dof_index i,
+               const types::global_dof_index j) const;
 
                                      /**
                                       * Return the main diagonal
@@ -596,14 +596,14 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * involve searching for the
                                       * right column number.
                                       */
-    number diag_element (const unsigned int i) const;
+    number diag_element (const types::global_dof_index i) const;
 
                                      /**
                                       * Same as above, but return a
                                       * writeable reference. You're
                                       * sure you know what you do?
                                       */
-    number & diag_element (const unsigned int i);
+    number & diag_element (const types::global_dof_index i);
 
 //@}
 /**
@@ -1184,8 +1184,8 @@ class ChunkSparseMatrix : public virtual Subscriptor
                                       * Return the location of entry
                                       * $(i,j)$ within the val array.
                                       */
-    unsigned int compute_location (const unsigned int i,
-                                   const unsigned int j) const;
+    unsigned int compute_location (const types::global_dof_index i,
+                                   const types::global_dof_index j) const;
 
                                      // make all other sparse matrices
                                      // friends
@@ -1201,7 +1201,7 @@ class ChunkSparseMatrix : public virtual Subscriptor
 
 template <typename number>
 inline
-unsigned int ChunkSparseMatrix<number>::m () const
+types::global_dof_index ChunkSparseMatrix<number>::m () const
 {
   Assert (cols != 0, ExcNotInitialized());
   return cols->rows;
@@ -1210,7 +1210,7 @@ unsigned int ChunkSparseMatrix<number>::m () const
 
 template <typename number>
 inline
-unsigned int ChunkSparseMatrix<number>::n () const
+types::global_dof_index ChunkSparseMatrix<number>::n () const
 {
   Assert (cols != 0, ExcNotInitialized());
   return cols->cols;
@@ -1221,8 +1221,8 @@ unsigned int ChunkSparseMatrix<number>::n () const
 template <typename number>
 inline
 unsigned int
-ChunkSparseMatrix<number>::compute_location (const unsigned int i,
-                                             const unsigned int j) const
+ChunkSparseMatrix<number>::compute_location (const types::global_dof_index i,
+                                             const types::global_dof_index j) const
 {
   const unsigned int chunk_size = cols->get_chunk_size();
   const unsigned int chunk_index
@@ -1243,8 +1243,8 @@ ChunkSparseMatrix<number>::compute_location (const unsigned int i,
 
 template <typename number>
 inline
-void ChunkSparseMatrix<number>::set (const unsigned int i,
-                                     const unsigned int j,
+void ChunkSparseMatrix<number>::set (const types::global_dof_index i,
+                                     const types::global_dof_index j,
                                      const number value)
 {
 
@@ -1268,8 +1268,8 @@ void ChunkSparseMatrix<number>::set (const unsigned int i,
 
 template <typename number>
 inline
-void ChunkSparseMatrix<number>::add (const unsigned int i,
-                                     const unsigned int j,
+void ChunkSparseMatrix<number>::add (const types::global_dof_index i,
+                                     const types::global_dof_index j,
                                      const number value)
 {
 
@@ -1356,8 +1356,8 @@ ChunkSparseMatrix<number>::operator /= (const number factor)
 
 template <typename number>
 inline
-number ChunkSparseMatrix<number>::operator () (const unsigned int i,
-                                               const unsigned int j) const
+number ChunkSparseMatrix<number>::operator () (const types::global_dof_index i,
+                                               const types::global_dof_index j) const
 {
   Assert (cols != 0, ExcNotInitialized());
   AssertThrow (compute_location(i,j) != SparsityPattern::invalid_entry,
@@ -1369,8 +1369,8 @@ number ChunkSparseMatrix<number>::operator () (const unsigned int i,
 
 template <typename number>
 inline
-number ChunkSparseMatrix<number>::el (const unsigned int i,
-                                      const unsigned int j) const
+number ChunkSparseMatrix<number>::el (const types::global_dof_index i,
+                                      const types::global_dof_index j) const
 {
   Assert (cols != 0, ExcNotInitialized());
   const unsigned int index = compute_location(i,j);
@@ -1385,7 +1385,7 @@ number ChunkSparseMatrix<number>::el (const unsigned int i,
 
 template <typename number>
 inline
-number ChunkSparseMatrix<number>::diag_element (const unsigned int i) const
+number ChunkSparseMatrix<number>::diag_element (const types::global_dof_index i) const
 {
   Assert (cols != 0, ExcNotInitialized());
   Assert (cols->optimize_diagonal(),  ExcNotQuadratic());
@@ -1408,7 +1408,7 @@ number ChunkSparseMatrix<number>::diag_element (const unsigned int i) const
 
 template <typename number>
 inline
-number & ChunkSparseMatrix<number>::diag_element (const unsigned int i)
+number & ChunkSparseMatrix<number>::diag_element (const types::global_dof_index i)
 {
   Assert (cols != 0, ExcNotInitialized());
   Assert (cols->optimize_diagonal(),  ExcNotQuadratic());

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.