]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve an error message. 17529/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Aug 2024 16:18:02 +0000 (10:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Aug 2024 16:18:02 +0000 (10:18 -0600)
source/fe/fe_system.cc

index 8a4bcc7acafd3ff1ca6c4a19c0eed95bfbf1200a..a54f8cf29062efd3aadf143428abcdf8e10d7a78 100644 (file)
@@ -2422,7 +2422,14 @@ FESystem<dim, spacedim>::compare_for_domination(
         dynamic_cast<const FESystem<dim, spacedim> *>(&fe_other))
     {
       Assert(this->n_components() == fe_sys_other->n_components(),
-             ExcNotImplemented());
+             ExcMessage("You can only compare two elements for domination "
+                        "that have the same number of vector components. The "
+                        "current element has " +
+                        std::to_string(this->n_components()) +
+                        " vector components, and you are comparing it "
+                        "against an element with " +
+                        std::to_string(fe_sys_other->n_components()) +
+                        " vector components."));
       Assert(this->n_base_elements() == fe_sys_other->n_base_elements(),
              ExcNotImplemented());
 

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.