]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve error message if FiniteElement has not been initialized. 1636/head
authorJonathan Perry-Houts <jperryh2@uoregon.edu>
Fri, 18 Sep 2015 16:28:42 +0000 (09:28 -0700)
committerJonathan Perry-Houts <jperryh2@uoregon.edu>
Fri, 18 Sep 2015 16:28:42 +0000 (09:28 -0700)
include/deal.II/dofs/dof_handler.h

index ff474d374baa4ce63ee00d1d6d5d62a55f8aead0..2a3beb560326b2426d41e32e12e1b2ff30977989 100644 (file)
@@ -1186,7 +1186,7 @@ inline
 const FiniteElement<dim,spacedim> &
 DoFHandler<dim,spacedim>::get_fe () const
 {
-  Assert(selected_fe!=0, ExcNotInitialized());
+  Assert(selected_fe!=0, ExcMessage("You are trying to access the DoFHandler's FiniteElement object before it has been initialized."));
   return *selected_fe;
 }
 

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.