// This is the end accessor, which
// does not hava a valid block.
- if (a_block == matrix->n_blocks())
+ if (a_block == matrix->size())
return;
const unsigned int r = row % bs;
b_iterator = matrix->inverse(a_block).begin(r);
b_end = matrix->inverse(a_block).end();
- Assert (a_block < matrix->n_blocks(),
- ExcIndexRange(a_block, 0, matrix->n_blocks()));
+ Assert (a_block < matrix->size(),
+ ExcIndexRange(a_block, 0, matrix->size()));
}
unsigned int
PreconditionBlockJacobi<MATRIX, inverse_type>::const_iterator::Accessor::row() const
{
- Assert (a_block < matrix->n_blocks(),
+ Assert (a_block < matrix->size(),
ExcIteratorPastEnd());
return bs * a_block + b_iterator->row();
unsigned int
PreconditionBlockJacobi<MATRIX, inverse_type>::const_iterator::Accessor::column() const
{
- Assert (a_block < matrix->n_blocks(),
+ Assert (a_block < matrix->size(),
ExcIteratorPastEnd());
return bs * a_block + b_iterator->column();
inverse_type
PreconditionBlockJacobi<MATRIX, inverse_type>::const_iterator::Accessor::value() const
{
- Assert (a_block < matrix->n_blocks(),
+ Assert (a_block < matrix->size(),
ExcIteratorPastEnd());
return b_iterator->value();
{
++accessor.a_block;
- if (accessor.a_block < accessor.matrix->n_blocks())
+ if (accessor.a_block < accessor.matrix->size())
{
accessor.b_iterator = accessor.matrix->inverse(accessor.a_block).begin();
accessor.b_end = accessor.matrix->inverse(accessor.a_block).end();
PreconditionBlockJacobi<MATRIX, inverse_type>::const_iterator::
operator == (const const_iterator &other) const
{
- if (accessor.a_block == accessor.matrix->n_blocks() &&
+ if (accessor.a_block == accessor.matrix->size() &&
accessor.a_block == other.accessor.a_block)
return true;
typename PreconditionBlockJacobi<MATRIX, inverse_type>::const_iterator
PreconditionBlockJacobi<MATRIX, inverse_type>::end () const
{
- return const_iterator(this, this->n_blocks() * this->block_size());
+ return const_iterator(this, this->size() * this->block_size());
}
template <int dim, int spacedim>
-types::subdomain_id_t CellAccessor<dim, spacedim>::level_subdomain_id () const
+types::subdomain_id CellAccessor<dim, spacedim>::level_subdomain_id () const
{
Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
return this->tria->levels[this->present_level]->level_subdomain_ids[this->present_index];
template <int dim, int spacedim>
void
-CellAccessor<dim, spacedim>::set_level_subdomain_id (const types::subdomain_id_t new_level_subdomain_id) const
+CellAccessor<dim, spacedim>::set_level_subdomain_id (const types::subdomain_id new_level_subdomain_id) const
{
Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
this->tria->levels[this->present_level]->level_subdomain_ids[this->present_index]