]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor improvement to an error message. 14876/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 10 Mar 2023 21:24:08 +0000 (14:24 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 10 Mar 2023 21:24:08 +0000 (14:24 -0700)
include/deal.II/base/exceptions.h

index ba4ae6b40270110e7d21f6d7c000ca8ed8450059..f8e184a158698fa987c5158c8d2096d16af8f92c 100644 (file)
@@ -926,7 +926,8 @@ namespace StandardExceptions
   DeclException2(ExcDimensionMismatch,
                  std::size_t,
                  std::size_t,
-                 << "Dimension " << arg1 << " not equal to " << arg2 << '.');
+                 << "Two sizes or dimensions were supposed to be equal, "
+                 << "but aren't. They are " << arg1 << " and " << arg2 << '.');
 
   /**
    * The first dimension should be either equal to the second or the third,
@@ -936,8 +937,10 @@ namespace StandardExceptions
                  std::size_t,
                  std::size_t,
                  std::size_t,
-                 << "Dimension " << arg1 << " neither equal to " << arg2
-                 << " nor to " << arg3 << '.');
+                 << "The size or dimension of one object, " << arg1
+                 << " was supposed to be "
+                 << "equal to one of two values, but isn't. The two possible "
+                 << "values are " << arg2 << " and " << arg3 << '.');
 
   /**
    * This exception indicates that an index is not within the expected range.

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.