]> https://gitweb.dealii.org/ - dealii.git/commit
Fix iterating over entries of parallel PETSc matrices.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 21 Mar 2018 00:45:24 +0000 (18:45 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Mar 2018 17:40:03 +0000 (11:40 -0600)
commitc42af443d5791553e66812bbab05fd818bf3e895
tree43599f17039af79867a8b3157ebedba60025a7da
parent71797fa16aa33fdfa491b436a65c20a13a9165e5
Fix iterating over entries of parallel PETSc matrices.

Previously, it was not possible to iterate over the local range because
one would have to call
  matrix.end(row)
where 'row' is the last locally owned row, and that triggered an
assertion because this end iterator is also the begin iterator of
the next row -- which is not locally owned any more.

Fix this.
include/deal.II/lac/petsc_matrix_base.h
source/lac/petsc_matrix_base.cc

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.