]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix PETScWrappers::MatrixBase::end(row) 8630/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 23 Aug 2019 13:23:28 +0000 (09:23 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 23 Aug 2019 13:23:28 +0000 (09:23 -0400)
include/deal.II/lac/petsc_matrix_base.h

index 715455747d0d62d8ead3602f034f9ea480109092..91457c9fd7a2af3b246962bb6dcb8277514152db 100644 (file)
@@ -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};
   }
 
 

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.