]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve error message.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jan 2014 20:56:08 +0000 (20:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Jan 2014 20:56:08 +0000 (20:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@32238 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_accessor.templates.h

index 327146e3f59630a48c1d3ce60fa7a78946fd8c7a..2c9af2dcc0cb9dcc6f50e57637b2f2e7af202330 100644 (file)
@@ -80,7 +80,12 @@ DoFAccessor<structdim,DH,lda>::DoFAccessor (const DoFAccessor<dim2, DH2, lda2> &
   : BaseClass(other),
     dof_handler(0)
 {
-  Assert (false, ExcInvalidObject());
+  Assert (false, ExcMessage("You are trying to assign iterators that are incompatible. "
+                           "Reasons for incompatibility are that they point to different "
+                           "types of DoFHandlers (e.g., dealii::DoFHandler and "
+                           "dealii::hp::DoFHandler) or that the refer to objects of "
+                           "different dimensionality (e.g., assigning a line iterator "
+                           "to a quad iterator)."));
 }
 
 

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.