From: Daniel Arndt Date: Fri, 23 Aug 2019 13:23:28 +0000 (-0400) Subject: Fix PETScWrappers::MatrixBase::end(row) X-Git-Tag: v9.2.0-rc1~1188^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5b8c017d5dba1419cfe6b5d074a2cd102fa9bad;p=dealii.git Fix PETScWrappers::MatrixBase::end(row) --- diff --git a/include/deal.II/lac/petsc_matrix_base.h b/include/deal.II/lac/petsc_matrix_base.h index 715455747d..91457c9fd7 100644 --- a/include/deal.II/lac/petsc_matrix_base.h +++ b/include/deal.II/lac/petsc_matrix_base.h @@ -1560,7 +1560,9 @@ namespace PETScWrappers // if there is no such line, then take the // end iterator of the matrix - return end(); + // we don't allow calling end() directly for distributed matrices so we need + // to copy the code without the assertion. + return {this, m(), 0}; }