From c5b8c017d5dba1419cfe6b5d074a2cd102fa9bad Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 23 Aug 2019 09:23:28 -0400 Subject: [PATCH] Fix PETScWrappers::MatrixBase::end(row) --- include/deal.II/lac/petsc_matrix_base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; } -- 2.39.5