]> https://gitweb.dealii.org/ - dealii.git/commitdiff
improve error message 7926/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 22 Apr 2019 19:32:19 +0000 (14:32 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 23 Apr 2019 01:34:42 +0000 (20:34 -0500)
source/lac/dynamic_sparsity_pattern.cc

index b96163570f1b05ddffa150749cea3f9e35cafb40..5631edc66191eeba3c7e2884b279d76328b4139c 100644 (file)
@@ -358,7 +358,11 @@ DynamicSparsityPattern::exists(const size_type i, const size_type j) const
 {
   Assert(i < rows, ExcIndexRange(i, 0, rows));
   Assert(j < cols, ExcIndexRange(j, 0, cols));
-  Assert(rowset.size() == 0 || rowset.is_element(i), ExcInternalError());
+  Assert(
+    rowset.size() == 0 || rowset.is_element(i),
+    ExcMessage(
+      "The row IndexSet does not contain the index i. This sparsity pattern "
+      "object cannot know whether the entry (i, j) exists or not."));
 
   // Avoid a segmentation fault in below code if the row index happens to
   // not be present in the IndexSet rowset:

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.