Skip to content
Snippets Groups Projects

Fix segmentation fault in AMG if matrix of one rank is empty.

Merged Markus Blatt requested to merge fix-amg-empty-matrix-on-one-proc into master
2 files
+ 8
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
0
@@ -1986,6 +1986,11 @@ namespace Dune
VertexDescriptor* edge=edges_;
// Cater for the case that there are no vertices.
// Otherwise endVertex_ will get 1 below.
if ( graph.noVertices() == 0)
return;
typedef typename Graph::ConstVertexIterator Iterator;
Iterator endVertex=graph.end();
Loading