]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix assertion
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 15 Apr 2015 20:39:58 +0000 (22:39 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 16 Apr 2015 06:14:00 +0000 (08:14 +0200)
source/lac/trilinos_sparsity_pattern.cc

index 45b16000722144fe21b1036c1ac974267fe5aea5..6c4913eabf2782c73f7aea7f8951c406c3adaa6c 100644 (file)
@@ -718,7 +718,8 @@ namespace TrilinosWrappers
                                                       static_cast<TrilinosWrappers::types::int_type> (0));
             nonlocal_graph->InsertGlobalIndices(row, 1, &row);
           }
-        Assert(nonlocal_graph->IndicesAreGlobal() == true,
+        Assert(nonlocal_graph->RowMap().NumMyElements() == 0 ||
+               nonlocal_graph->IndicesAreGlobal() == true,
                ExcInternalError());
         nonlocal_graph->FillComplete(*column_space_map,
                                      static_cast<const Epetra_Map &>(graph->RangeMap()));

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.