From efb8a462e7b616383965b8e22c81434d0a4800df Mon Sep 17 00:00:00 2001 From: "kainan.wang" Date: Mon, 15 Apr 2013 09:14:33 +0000 Subject: [PATCH] Fix some warnings git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29273 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/deal.II/lac/compressed_set_sparsity_pattern.h | 8 ++++---- deal.II/include/deal.II/lac/matrix_block.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/include/deal.II/lac/compressed_set_sparsity_pattern.h b/deal.II/include/deal.II/lac/compressed_set_sparsity_pattern.h index 4f0379a53b..adb57ca87a 100644 --- a/deal.II/include/deal.II/lac/compressed_set_sparsity_pattern.h +++ b/deal.II/include/deal.II/lac/compressed_set_sparsity_pattern.h @@ -463,8 +463,8 @@ void CompressedSetSparsityPattern::add (const size_type i, const size_type j) { - Assert (i(i, 0, rows)); + Assert (j(j, 0, cols)); lines[i].add (j); } @@ -479,7 +479,7 @@ CompressedSetSparsityPattern::add_entries (const size_type row, ForwardIterator end, const bool /*indices_are_sorted*/) { - Assert (row < rows, ExcIndexRange (row, 0, rows)); + Assert (row < rows, ExcIndexRangeType (row, 0, rows)); lines[row].add_entries (begin, end); } @@ -490,7 +490,7 @@ inline CompressedSetSparsityPattern::size_type CompressedSetSparsityPattern::row_length (const size_type row) const { - Assert (row < n_rows(), ExcIndexRange (row, 0, n_rows())); + Assert (row < n_rows(), ExcIndexRangeType (row, 0, n_rows())); return lines[row].entries.size(); } diff --git a/deal.II/include/deal.II/lac/matrix_block.h b/deal.II/include/deal.II/lac/matrix_block.h index 70d3b4f103..5821861662 100644 --- a/deal.II/include/deal.II/lac/matrix_block.h +++ b/deal.II/include/deal.II/lac/matrix_block.h @@ -351,14 +351,14 @@ public: * position of the data member * matrix on the global matrix. */ - size_type row; + unsigned int row; /** * Column coordinate. This is * the position of the data * member matrix on the global * matrix. */ - size_type column; + unsigned int column; /** * The matrix itself -- 2.39.5