* element presently pointed
* to.
*/
- size_type current_block;
+ unsigned int current_block;
size_type index_within_block;
/**
* 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
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()));
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()));
* 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.
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);
}
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 ();
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 ();
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 ();
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();
}
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
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