]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make an assertion more informative. 16255/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Nov 2023 17:35:40 +0000 (10:35 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 8 Nov 2023 19:54:36 +0000 (12:54 -0700)
The corresponding DoFAccessor already has that same text.

include/deal.II/grid/tria_accessor.templates.h

index e3a5a0061d1ebaccb9acd2968c14d67b9babc909..cd8f4d0ac107ba4e1f3f39669af5ad3133a8f04f 100644 (file)
@@ -2899,7 +2899,10 @@ inline TriaAccessor<0, 1, spacedim>::TriaAccessor(
   // accessor
   (void)level;
   (void)index;
-  Assert((level == -2) && (index == -2), ExcInternalError());
+  Assert((level == -2) && (index == -2),
+         ExcMessage(
+           "This constructor can not be called for face iterators in 1d, "
+           "except to default-construct iterator objects."));
 }
 
 

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.