From: Daniel Arndt Date: Wed, 6 Feb 2019 23:22:57 +0000 (+0100) Subject: Use size_type for rows in ChunkSparsityPattern X-Git-Tag: v9.1.0-rc1~348^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479cd3d51f46b9eac0170f03e78917ed959b8f92;p=dealii.git Use size_type for rows in ChunkSparsityPattern --- diff --git a/include/deal.II/lac/chunk_sparsity_pattern.h b/include/deal.II/lac/chunk_sparsity_pattern.h index 4a458f5982..a43a3f9558 100644 --- a/include/deal.II/lac/chunk_sparsity_pattern.h +++ b/include/deal.II/lac/chunk_sparsity_pattern.h @@ -64,10 +64,15 @@ namespace ChunkSparsityPatternIterators class Accessor { public: + /** + * Declare the type for container size. + */ + using size_type = types::global_dof_index; + /** * Constructor. */ - Accessor(const ChunkSparsityPattern *matrix, const unsigned int row); + Accessor(const ChunkSparsityPattern *matrix, const size_type row); /** * Constructor. Construct the end accessor for the given sparsity pattern. @@ -165,11 +170,16 @@ namespace ChunkSparsityPatternIterators class Iterator { public: + /** + * Declare the type for container size. + */ + using size_type = types::global_dof_index; + /** * Constructor. Create an iterator into the sparsity pattern @p sp for the * given row and the index within it. */ - Iterator(const ChunkSparsityPattern *sp, const unsigned int row); + Iterator(const ChunkSparsityPattern *sp, const size_type row); /** * Prefix increment. @@ -865,7 +875,7 @@ private: namespace ChunkSparsityPatternIterators { inline Accessor::Accessor(const ChunkSparsityPattern *sparsity_pattern, - const unsigned int row) + const size_type row) : sparsity_pattern(sparsity_pattern) , reduced_accessor(row == sparsity_pattern->n_rows() ? *sparsity_pattern->sparsity_pattern.end() : @@ -1039,7 +1049,7 @@ namespace ChunkSparsityPatternIterators inline Iterator::Iterator(const ChunkSparsityPattern *sparsity_pattern, - const unsigned int row) + const size_type row) : accessor(sparsity_pattern, row) {}