]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix some warnings
authorkainan.wang <kainan.wang@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Apr 2013 20:22:50 +0000 (20:22 +0000)
committerkainan.wang <kainan.wang@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Apr 2013 20:22:50 +0000 (20:22 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29270 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/block_vector_base.h
deal.II/include/deal.II/lac/compressed_sparsity_pattern.h
deal.II/include/deal.II/lac/trilinos_sparsity_pattern.h

index b2fdf6919b3dd620d258d1c555b1629827d92147..a5222ad5eac75a4e3576d2e8b65a3b627f748338 100644 (file)
@@ -627,7 +627,7 @@ namespace internal
        * element presently pointed
        * to.
        */
-      size_type current_block;
+      unsigned int current_block;
       size_type index_within_block;
 
       /**
@@ -804,13 +804,13 @@ public:
    * Access to a single block.
    */
   BlockType &
-  block (const size_type i);
+  block (const unsigned int i);
 
   /**
    * Read-only access to a single block.
    */
   const BlockType &
-  block (const size_type i) const;
+  block (const unsigned int i) const;
 
   /**
    * Return a reference on the
@@ -1786,7 +1786,7 @@ BlockVectorBase<VectorType>::n_blocks () const
 template <class VectorType>
 inline
 typename BlockVectorBase<VectorType>::BlockType &
-BlockVectorBase<VectorType>::block (const size_type i)
+BlockVectorBase<VectorType>::block (const unsigned int i)
 {
   Assert(i<n_blocks(), ExcIndexRange(i,0,n_blocks()));
 
@@ -1798,7 +1798,7 @@ BlockVectorBase<VectorType>::block (const size_type i)
 template <class VectorType>
 inline
 const typename BlockVectorBase<VectorType>::BlockType &
-BlockVectorBase<VectorType>::block (const size_type i) const
+BlockVectorBase<VectorType>::block (const unsigned int i) const
 {
   Assert(i<n_blocks(), ExcIndexRange(i,0,n_blocks()));
 
index 37994cd9cfd93019978c0e6736f7bfca26586968..4c8b5dd802d414c6b467e6febc40226f09b83339 100644 (file)
@@ -436,7 +436,7 @@ private:
      * Cache of entries that have not yet
      * been written to #entries;
      */
-    mutable unsigned int cache[cache_size];
+    mutable size_type cache[cache_size];
 
     /**
      * Number of entries in the cache.
@@ -529,8 +529,8 @@ void
 CompressedSparsityPattern::add (const size_type i,
                                 const size_type j)
 {
-  Assert (i<rows, ExcIndexRange(i, 0, rows));
-  Assert (j<cols, ExcIndexRange(j, 0, cols));
+  Assert (i<rows, ExcIndexRangeType<size_type>(i, 0, rows));
+  Assert (j<cols, ExcIndexRangeType<size_type>(j, 0, cols));
 
   lines[i].add (j);
 }
@@ -564,7 +564,7 @@ inline
 types::global_dof_index
 CompressedSparsityPattern::row_length (const size_type row) const
 {
-  Assert (row < n_rows(), ExcIndexRange (row, 0, n_rows()));
+  Assert (row < n_rows(), ExcIndexRangeType<size_type> (row, 0, n_rows()));
 
   if (lines[row].cache_entries != 0)
     lines[row].flush_cache ();
@@ -578,9 +578,9 @@ types::global_dof_index
 CompressedSparsityPattern::column_number (const size_type row,
                                           const size_type index) const
 {
-  Assert (row < n_rows(), ExcIndexRange (row, 0, n_rows()));
+  Assert (row < n_rows(), ExcIndexRangeType<size_type> (row, 0, n_rows()));
   Assert (index < lines[row].entries.size(),
-          ExcIndexRange (index, 0, lines[row].entries.size()));
+          ExcIndexRangeType<size_type> (index, 0, lines[row].entries.size()));
 
   if (lines[row].cache_entries != 0)
     lines[row].flush_cache ();
@@ -593,7 +593,7 @@ inline
 CompressedSparsityPattern::row_iterator
 CompressedSparsityPattern::row_begin (const size_type row) const
 {
-  Assert (row < n_rows(), ExcIndexRange (row, 0, n_rows()));
+  Assert (row < n_rows(), ExcIndexRangeType<size_type> (row, 0, n_rows()));
 
   if (lines[row].cache_entries != 0)
     lines[row].flush_cache ();
@@ -606,7 +606,7 @@ inline
 CompressedSparsityPattern::row_iterator
 CompressedSparsityPattern::row_end (const size_type row) const
 {
-  Assert (row < n_rows(), ExcIndexRange (row, 0, n_rows()));
+  Assert (row < n_rows(), ExcIndexRangeType<size_type> (row, 0, n_rows()));
   return lines[row].entries.end();
 }
 
index 515eae350ebcb248e2266781199dbe6cec25fea3..25d9482c097192ceaeaf33e2dec04026cf35c1b9 100644 (file)
@@ -1560,7 +1560,7 @@ namespace TrilinosWrappers
   SparsityPattern::const_iterator
   SparsityPattern::begin(const size_type r) const
   {
-    Assert (r < n_rows(), ExcIndexRange(r, 0, n_rows()));
+    Assert (r < n_rows(), ExcIndexRangeType<size_type>(r, 0, n_rows()));
     if (row_length(r) > 0)
       return const_iterator(this, r, 0);
     else
@@ -1573,7 +1573,7 @@ namespace TrilinosWrappers
   SparsityPattern::const_iterator
   SparsityPattern::end(const size_type r) const
   {
-    Assert (r < n_rows(), ExcIndexRange(r, 0, n_rows()));
+    Assert (r < n_rows(), ExcIndexRangeType<size_type>(r, 0, n_rows()));
 
     // place the iterator on the first entry
     // past this line, or at the end of the

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.